Skip to content

Commit

Permalink
KeyManagement (#31)
Browse files Browse the repository at this point in the history
* KeyManagement

* adds new db password

---------

Co-authored-by: Fernanda Palacios <[email protected]>
  • Loading branch information
03fernanda-palacios and Fernanda Palacios authored Feb 24, 2024
1 parent ec0a359 commit 2d3e127
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion BundleClient/app/src/main/res/raw/server_identity.pub
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-----BEGIN EC PUBLIC KEY-----
BfZxnb3z50LgRAxFLDAfUJM7EzU5gKKFTyCxqwVa0SxR
BTosGTHnz3Yfh-wm89oei105jvfJ6ZkNmbroaPZd49QS
-----END EC PUBLIC KEY-----
2 changes: 1 addition & 1 deletion BundleClient/app/src/main/res/raw/server_ratchet.pub
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-----BEGIN EC PUBLIC KEY-----
BVwPVtgL5VEEE0QZ90qIojB_f4rLw8h4J9XE0enc-ids
BaKLdt2pPnp0IBJRgA2Z0YlKZfl8h2D2HUZun9ABo0ls
-----END EC PUBLIC KEY-----
2 changes: 1 addition & 1 deletion BundleClient/app/src/main/res/raw/server_signed_pre.pub
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-----BEGIN EC PUBLIC KEY-----
BVwPVtgL5VEEE0QZ90qIojB_f4rLw8h4J9XE0enc-ids
BRSXWfhxdwkfrGIqgG9yqElW5Ds78aQC5xu_SLkoqIkH
-----END EC PUBLIC KEY-----
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,14 @@ private ServerSecurity(String serverRootPath) throws ServerIntializationExceptio
SecurityUtils.createDirectory(clientRootPath);
} catch (Exception e) {
System.out.println(e.getMessage());
System.out.println("Error loading server keys. Ensure the following key files exist in your application.yml's {bundle-server.bundle-security.server-serverkeys-path} path:\n"+
System.out.printf("Error loading server keys. Ensure the following key files exist in your application.yml's {bundle-server.bundle-security.server-serverkeys-path} path:\n"+
"%s\n" +
"server_identity.pub\n"+
"serverIdentity.pvt\n"+
"server_signed_pre.pub\n"+
"serverSignedPreKey.pvt\n"+
"server_ratchet.pub\n"+
"serverRatchetKey.pvt");
"serverRatchetKey.pvt\n", serverKeyPath);
// BundleServerApplication.exit();
}
// try {
Expand Down
2 changes: 1 addition & 1 deletion bundleserver/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spring:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/dtn_server_db?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
username: root
password: mchougule478
password: ddd2024
db-name: dtn_server_db

server:
Expand Down

0 comments on commit 2d3e127

Please sign in to comment.