Skip to content

Commit 80d0925

Browse files
committed
conga-aem-crypto-cli: Allow to generate AEM crypto keys without specifying and Ansible vault password.
1 parent 6ed7a75 commit 80d0925

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

changes.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 http://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
2424
<body>
2525

26+
<release version="1.9.4" date="not released">
27+
<action type="fix" dev="sseifert">
28+
conga-aem-crypto-cli: Allow to generate AEM crypto keys without specifying and Ansible vault password.
29+
</action>
30+
</release>
31+
2632
<release version="1.9.2" date="2019-10-01">
2733
<action type="add" dev="sseifert" issue="WTOOL-54">
2834
conga-aem-maven-plugin: Add two more bundles to "Bundle Status Whitelist Bundle Names" property.

tooling/conga-aem-crypto-cli/src/main/java/io/wcm/devops/conga/plugins/aem/tooling/crypto/cli/CryptoKeys.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ private CryptoKeys() {
4949
* @throws GeneralSecurityException Security exception
5050
*/
5151
public static Stream<File> generate(File targetDir, boolean ansibleVaultEncrypt) throws GeneralSecurityException {
52-
return generate(targetDir, ansibleVaultEncrypt, AnsibleVaultPassword.get());
52+
String ansibleVaultPassword = null;
53+
if (ansibleVaultEncrypt) {
54+
ansibleVaultPassword = AnsibleVaultPassword.get();
55+
}
56+
return generate(targetDir, ansibleVaultEncrypt, ansibleVaultPassword);
5357
}
5458

5559
/**

0 commit comments

Comments
 (0)