+++ This bug was initially created as a clone of Bug #1354633 +++ A katello user reported that they were unable to download the debug certificate from the UI. The attached stack trace shows that candlepin thrown an IndexOutOfBounds exception when fetching the certificate. A very similar issue was addressed with this BZ #1259248 but it appears that the fix has not completely addressed the issue. It appears that candlepin is still deleting the debug certificate. More investigation is needed to determine the cause. The version of candlepin running at the time of the exception was candlepin-0.9.54.6-1.el7.noarch. There were no steps to reproduce provided, but the error was triggered by clicking the 'Generate and Download' button. The workaround included in 1259248 can be used to get around the issue, but DB access is required.
The fix for BZ #1259248 prevents this BZ from re-occurring, but systems already affected by the bug will require some data cleanup in order to put the system back in the correct state. The following patch will clean up the bad data via a liquibase changeset and will allow certs to be generated again. The fix will be applied once candlepin's DB upgrade script is run. FIXED BY: https://github.com/candlepin/candlepin/pull/1308