Actions
Bug #37384
closedDuring upgrade to Katello 4.11 issues are seen with Candlepin keystore when using FIPS
Status:
Closed
Priority:
High
Assignee:
Category:
Foreman modules
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2277005
When upgrading to Katello 4.11 in a FIPS enabled environment we are seeing issues related to regenerating and reimporting the candlepin-ca;
2024-04-24 11:22:55 [ERROR ] [configure] /Stage[main]/Certs::Candlepin/Truststore_certificate[/etc/candlepin/certs/truststore:candlepin-ca]/ensure: change from 'absent' to 'present' failed: Execution of '/bin/keytool -import -v -noprompt -storetype pkcs12 -keystore /etc/candlepin/certs/truststore -alias candlepin-ca -file /etc/candlepin/certs/candlepin-ca.crt -storepass:file /etc/pki/katello/truststore_password-file -J-Dcom.redhat.fips=false' returned 1: keytool error: java.io.IOException: keystore password was incorrect 2024-04-24 11:22:55 [ERROR ] [configure] java.io.IOException: keystore password was incorrect 2024-04-24 11:22:55 [ERROR ] [configure] at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:2089) 2024-04-24 11:22:55 [ERROR ] [configure] at java.security.KeyStore.load(KeyStore.java:1445) 2024-04-24 11:22:55 [ERROR ] [configure] at sun.security.tools.keytool.Main.doCommands(Main.java:839) 2024-04-24 11:22:55 [ERROR ] [configure] at sun.security.tools.keytool.Main.run(Main.java:380) 2024-04-24 11:22:55 [ERROR ] [configure] at sun.security.tools.keytool.Main.main(Main.java:373) 2024-04-24 11:22:55 [ERROR ] [configure] Caused by: java.security.UnrecoverableKeyException: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
Updated by Evgeni Golov 8 months ago
- Subject changed from During upgrade to Katello 4.11 issues are seen with Candlepin keystore to During upgrade to Katello 4.11 issues are seen with Candlepin keystore
- Category set to Foreman modules
Updated by The Foreman Bot 8 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/puppet-certs/pull/444 added
Updated by The Foreman Bot 8 months ago
- Pull request https://github.com/theforeman/puppet-certs/pull/445 added
Updated by The Foreman Bot 8 months ago
- Pull request https://github.com/theforeman/puppet-certs/pull/446 added
Updated by Evgeni Golov 8 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset puppet-certs|b9667a02bebf6cce0b96fbd631ce34fb27c325ec.
Updated by The Foreman Bot 8 months ago
- Pull request https://github.com/theforeman/foreman-installer/pull/931 added
Updated by The Foreman Bot 8 months ago
- Pull request https://github.com/theforeman/foreman-installer/pull/932 added
Updated by Ewoud Kohl van Wijngaarden 6 months ago
- Triaged changed from No to Yes
Updated by Ewoud Kohl van Wijngaarden 6 months ago
- Subject changed from During upgrade to Katello 4.11 issues are seen with Candlepin keystore to During upgrade to Katello 4.11 issues are seen with Candlepin keystore when using FIPS
Actions