Skip to main content
Level 2
January 25, 2022
Solved

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

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.  

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Mayank_Tiwari
Mayank_TiwariAccepted solution
Adobe Employee
January 26, 2022

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.*

4 replies

Level 8
January 25, 2022

When are you getting this?

Translate
Pulkit_Jain_
Adobe Employee
Adobe Employee
January 25, 2022

@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-wizard.html?lang=en 

Translate
Mayank_Tiwari
Adobe Employee
Mayank_TiwariAdobe EmployeeAccepted solution
Adobe Employee
January 26, 2022

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.*
Translate
Level 2
January 26, 2022

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

 

Translate