Skip to content

Commit

Permalink
test: rework ApplyConfigurationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
NiccoMlt committed Dec 10, 2024
1 parent 9b18218 commit 8041f7a
Show file tree
Hide file tree
Showing 3 changed files with 239 additions and 236 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ private SslContext bootSslContext(NetworkListenerConfiguration listener, SSLCert
try {
// Try to find certificate data on db
byte[] keystoreContent = parent.getDynamicCertificatesManager().getCertificateForDomain(certificate.getId());
KeyStore keystore;
final KeyStore keystore;
if (keystoreContent != null) {
LOG.debug("start SSL with dynamic certificate id {}, on listener {}:{}", certificate.getId(), listener.getHost(), port);
keystore = loadKeyStoreData(keystoreContent, certificate.getPassword());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ private RuntimeServerConfiguration getConfig() {
* @return PKCS12 Keystore content
*/
public byte[] getCertificateForDomain(String domain) {
CertificateData cert = certificates.get(domain); // certs always retrived from cache
CertificateData cert = certificates.get(domain); // certs always retrieved from cache
if (cert == null || cert.getKeystoreData() == null || cert.getKeystoreData().length == 0) {
LOG.error("No dynamic certificate available for domain {}", domain);
return null;
Expand Down
Loading

0 comments on commit 8041f7a

Please sign in to comment.