Project

General

Profile

Actions

Bug #37384

closed

During upgrade to Katello 4.11 issues are seen with Candlepin keystore when using FIPS

Added by Evgeni Golov 8 months ago. Updated 6 months ago.


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.
Actions #1

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
Actions #2

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
Actions #3

Updated by Evgeni Golov 8 months ago

  • Description updated (diff)
Actions #4

Updated by The Foreman Bot 8 months ago

  • Fixed in Releases 3.11.0 added
Actions #5

Updated by The Foreman Bot 8 months ago

  • Pull request https://github.com/theforeman/puppet-certs/pull/445 added
Actions #6

Updated by The Foreman Bot 8 months ago

  • Pull request https://github.com/theforeman/puppet-certs/pull/446 added
Actions #7

Updated by Evgeni Golov 8 months ago

  • Status changed from Ready For Testing to Closed
Actions #8

Updated by Evgeni Golov 8 months ago

  • Target version set to 3.9.3
Actions #9

Updated by The Foreman Bot 8 months ago

  • Pull request https://github.com/theforeman/foreman-installer/pull/931 added
Actions #10

Updated by The Foreman Bot 8 months ago

  • Pull request https://github.com/theforeman/foreman-installer/pull/932 added
Actions #11

Updated by Griffin Sullivan 8 months ago

  • Fixed in Releases 3.9.3 added
Actions #12

Updated by Ewoud Kohl van Wijngaarden 6 months ago

  • Triaged changed from No to Yes
Actions #13

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

Also available in: Atom PDF