Could not reconstruct the private key, the given algorithm could not be found.java.security.NoSuchAlgorithmException: no such algorithm: RSA for provider BC | Community
Skip to main content
Level 2
Jan 25, 2022 12:28 AM UTC
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
Employee
Jan 26, 2022 9:36 AM UTC

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

Mayank_Tiwari
Mayank_TiwariAccepted solution
Employee
Jan 26, 2022 9:36 AM UTC

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
Jan 26, 2022 3:40 PM UTC

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

 

Translate
Pulkit_Jain_
Employee
Jan 25, 2022 7:47 AM UTC

@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
Level 8
Jan 25, 2022 12:52 AM UTC

When are you getting this?

Translate