BAD_MAGIC Error when Adding Trusted Application Integration to JIRA
Symptoms
This KB pertains to JIRA 2.1 or earlier.
No issue results are returned from a {jiraissues} macro. When adding a trusted application, the error appears in the JIRA log:
2010-02-23 11:28:52,280 http-80-Processor145 ERROR [security.auth.trustedapps.BouncyCastleEncryptionProvider] java.lang.SecurityException: JCE cannot authenticate the provider BC
2010-02-23 11:28:52,280 http-80-Processor145 WARN [atlassian.seraph.filter.TrustedApplicationsFilter] Failed to login trusted application: confluence:10931266 due to: com.atlassian.security.auth.trustedapps.InvalidCertificateException: BAD_MAGIC; Unable to decrypt certificate {0} for application {1}; ["secret key","confluence:10931266"]
Cause
JIRA cannot find Bouncy Castle security provider jar to the application server classpath. See JRA-1401 for more details.
Resolution
Add BouncyCastle Cryptography provider in Java. See the randombugs instructions.
OR
Add bcprov-jdk14-138.jar to the <confluence-install>/lib
directory.
Last modified on Nov 12, 2018
Powered by Confluence and Scroll Viewport.