Integrating Bouncycastle 1.66 with AEM

Avatar

Avatar
Validate 10
Level 2
fionas76543059
Level 2

Likes

3 likes

Total Posts

74 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 10
Level 2
fionas76543059
Level 2

Likes

3 likes

Total Posts

74 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Applaud 5
View profile
fionas76543059
Level 2

14-10-2020

Hi folks,

Just wondering if anyone tried this in 6.5. I wanted to use bcprov-jdk15on and bcpkix-jdk15on.

I read here that I have to add the jars into  in jre/lib/ext and add BouncyCastle as a provider in java security properties.

I also added each package that I wanted into sling.properties, (no wildcards), in org.osgi.framework.system.packages.extra

I thought that AEM would just accept them then. However, I then get osgi wiring error messages which I got rid of by 

adding them to my bundle pom.xml <Import-Package> but making them optional. However, then the wiring problems went away but I got NoClassDefFound error messages. I also tried <Embed-Dependency>*</Embed-Dependency>, but then I got some odd compile messages from the maven-bundle-plugin about "Classes Found in the wrong directory".  I tried adding sling.properties:sling.bootdelegation.class.org.bouncycastle.jce.provider.BouncyCastleProvider=org.bouncycastle.* to the sling properties without any success. I also don't know if I include the libraries in  ordinary dependencies section of the pom.xml or not. I'm new to osgi I'm afraid. Just wondering if anyone can describe a foolproof way of doing it.

thanks

Fiona

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

645 likes

Total Posts

607 posts

Correct reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

645 likes

Total Posts

607 posts

Correct reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
MVP

16-10-2020

@fionas76543059,

This question seems to be an AEM Form's question. If you post this same question in the AEM Form's Forum, you will more likely find an answer from there, https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-forms/ct-p/adobe-experienc...