Bouncycastle | JCE SecurityException | Community
Skip to main content
Level 2
Nov 26, 2019 10:02 AM UTC
Solved

Bouncycastle | JCE SecurityException

I am using bouncycastle dependencies for PGP Encryption. Exception in the error log:

To resolve following error, I did the following:
1. Update Security provider in java.security file.
2. Add bcprov jar in jre/etc folder.

I tried updating the sling.properties but it did not resolve the issue.

Do we need to do same for Production and other lower environments? OR is there any other way?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
WasilZeeAccepted solution
Employee
Nov 26, 2019 12:04 PM UTC

You need to install the bouncy castle jar[0](already an OSGI bundle) in /system/console/bundles and update the sling.properties as on page[1]

[0] PGP Encryption/Decryption in Java | Waiting for Wit

[1] AEM 6.0 Forms Help | Configuring Document Services

2 replies

Level 2
Nov 26, 2019 2:22 PM UTC

I tried the same thing before, maybe missed something. It is working now.
Thanks

Translate
WasilZeeAccepted solution
Employee
Nov 26, 2019 12:04 PM UTC

You need to install the bouncy castle jar[0](already an OSGI bundle) in /system/console/bundles and update the sling.properties as on page[1]

[0] PGP Encryption/Decryption in Java | Waiting for Wit

[1] AEM 6.0 Forms Help | Configuring Document Services

Translate