Expand my Community achievements bar.

SOLVED

Could not reconstruct the private key, the given algorithm could not be found.java.security.NoSuchAlgorithmException: no such algorithm: RSA for provider BC

Avatar

Level 2

Hi Folks, 

 

We are getting the below:

 

Could not reconstruct the private key, the given algorithm could not be found.java.security.NoSuchAlgorithmException: no such algorithm: RSA for provider BC

Any leads please. This happening only on one environment. The lower environment is working just fine, with same setup.

AEM Forms Package 6.5, Service Pack 10.  

1 Accepted Solution

Avatar

Correct answer by
Employee

Can you check if the following lines are added in your sling.properties file:

 

sling.bootdelegation.class.com.rsa.jsafe.provider.JsafeJCE=com.rsa.*
sling.bootdelegation.class.org.bouncycastle.jce.provider.BouncyCastleProvider=org.bouncycastle.*

View solution in original post

4 Replies

Avatar

Employee Advisor

@tanmaysingh 

This one seems to be an issue[0] with the algorithm used to create/convert the private key. Please review the steps[1] followed to enable SSL on this particular set-up.

Also, are you getting this msg in the log file continously or while enabling SSL on this set-up?

 

[0] - 

the given algorithm could not be found.java.security.NoSuchAlgorithmException: no such algorithm:

 

[1] -  https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/security/use-the-ssl-wi... 

Avatar

Correct answer by
Employee

Can you check if the following lines are added in your sling.properties file:

 

sling.bootdelegation.class.com.rsa.jsafe.provider.JsafeJCE=com.rsa.*
sling.bootdelegation.class.org.bouncycastle.jce.provider.BouncyCastleProvider=org.bouncycastle.*

Avatar

Level 2

This worked @Mayank_Tiwari, post comparing the sling.properties files on two different environment. We found this was missing and added.