Skip to content

Commit

Permalink
Merge pull request #1853 from ml054/master
Browse files Browse the repository at this point in the history
RavenDB-14344 update java keystore creation code
  • Loading branch information
ppekrol authored Aug 27, 2024
2 parents 86804a2 + 1ba0770 commit 37ae284
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public Certificate() throws Exception {

//region client_cert
// load certificate
KeyStore clientStore = KeyStore.getInstance("PKCS12");
clientStore.load(new FileInputStream("c:\\ravendb\\client-cert.pfx"), "passwordToPfx".toCharArray());
// pem file should contain both public and private key
KeyStore clientStore = CertificateUtils.createKeystore("c:\\ravendb\\app.client.certificate.pem");

try (DocumentStore store = new DocumentStore()) {
store.setCertificate(clientStore);
Expand Down

0 comments on commit 37ae284

Please sign in to comment.