Skip to content

Commit

Permalink
change to use the actual custom certificate file when it exists
Browse files Browse the repository at this point in the history
Signed-off-by: William Xiang <[email protected]>
  • Loading branch information
william-xiang committed Nov 14, 2024
1 parent 20a666d commit 15073a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ private File findLetsEncryptCertDir() {

public ServerCertInfo get() throws IOException, InterruptedException {
if (m_userCertFile.isFile()) {
Tracer.info("Reusing user-defined server certificate in " + m_defaultCertFile.getAbsolutePath());
return new ServerCertJKS(m_defaultCertFile, StoreDefaults.getStorePass(), StoreDefaults.getKeyPass(),
Tracer.info("Reusing user-defined server certificate in " + m_userCertFile.getAbsolutePath());
return new ServerCertJKS(m_userCertFile, StoreDefaults.getStorePass(), StoreDefaults.getKeyPass(),
StoreDefaults.getAlias());
} else if (null != m_letsEncrypt) {
Tracer.info("Using LetsEncrypt certificate file " + m_letsEncrypt.getKeyStoreFile().getAbsolutePath());
Expand Down

0 comments on commit 15073a3

Please sign in to comment.