Skip to content

Commit

Permalink
Merge pull request #1281 from michalvavrik/feature/fix-pem-without-tl…
Browse files Browse the repository at this point in the history
…s-registry

Fix PEM certificate generation with disabled TLS registry
  • Loading branch information
gtroitsk authored Sep 4, 2024
2 parents be1e2bd + de6ecc2 commit e3863ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ private static void doubleBackSlashesOnWin(Map<String, String> props) {

private static void configurePemConfigurationProperties(CertificateOptions options, Map<String, String> props,
String keyLocation, String certLocation, String serverTrustStoreLocation) {
if (options.format() == PEM) {
if (options.format() == PEM && options.tlsRegistryEnabled()) {
var keyStorePropertyPrefix = tlsConfigPropPrefix(options, "key-store");
if (keyLocation != null) {
props.put(keyStorePropertyPrefix + "pem-1.key", keyLocation);
Expand Down

0 comments on commit e3863ec

Please sign in to comment.