Error 'Failed to generate RSA Key' when generating an RSA key pair
Originally Published: 2011-05-09
Last Modified: 2023-10-06
Article Number
Applies To
Issue
at com.rsa.keymanager.core.key.generate.DefaultRSAKeyGenerator.generateKeyWithSize(DefaultRSAKeyGenerator.java:101)
at com.rsa.keymanager.core.key.generate.DefaultRSAKeyGenerator.generateAndCheckFailure(DefaultRSAKeyGenerator.java:65)
[...]
au.net.netstorm.boost.primordial.PrimordialException: Failed to generate RSA Key
at com.rsa.keymanager.core.key.generate.DefaultRSAKeyGenerator.generateKeyWithSize(DefaultRSAKeyGenerator.java:101)
at com.rsa.keymanager.core.key.generate.DefaultRSAKeyGenerator.generateAndCheckFailure(DefaultRSAKeyGenerator.java:65)
[...]
Logs when the server starts shows twice the following initialization log (twice in the same 5 seconds interval):
02 May 2011 16:45:20,383 INFO Thread-1 - Client : Internal, -------------------------------------
02 May 2011 16:45:20,383 INFO Thread-1 - Client : Internal, Current Providers
02 May 2011 16:45:20,383 INFO Thread-1 - Client : Internal, -------------------------------------
[...]
02 May 2011 16:45:21,476 INFO Thread-1 - Client : Internal, -------------------------------------
02 May 2011 16:45:21,476 INFO Thread-1 - Client : Internal, Final Providers
02 May 2011 16:45:21,476 INFO Thread-1 - Client : Internal, -------------------------------------
[...]
Resolution
The problem was that previous version of RKM server war file was still in Tomcat's webapps folder. This is not allowed and lead to inconsistent and unpredictable behavior. To fix the issue, do the following:
1. Stop Tomcat
2. Go in TOMCAT/webapps folder and delete any un-needed .war file. Keep only KMS.war of the version needed
3. Delete all KMS-like folder both in TOMCAT/webapps/ and TOMCAT/work/Catalina/localhost
4. Restart Tomcat
Notes
Related Articles
How to export Web Tier Virtual Host Key Pair to a PFX file for RSA Authentication Manager 8.x 1.05KNumber of Views How to Generate SSL Certificate Request and Private Key from the RSA SecurID Access Admin Console 432Number of Views Failed to generate QR Code error when trying to activate software token using QR code in RSA Authentication Manager 8.x Se… 675Number of Views ASR fails to generate with an 'ORA-31011: XML parsing failed ORA-06512: at "AVUSER.SYSTEM_REPORT", line 245' error in RSA … 225Number of Views How to generate a Certificate Signing Request (CSR) with the Subject Alternative Name (SAN) field using openssl on RSA Aut… 525Number of Views
Trending Articles
RSA Authentication Manager 8.9 Patches and Hotfixes Readme RSA MFA Agent 2.5 for Microsoft Windows Installation and Administration Guide RSA Authentication Manager Patch Updates RSA Authentication Manager Upgrade Process RSA-2026-24: RSA Authentication Manager Security Update for Third-Party Component Vulnerabilities
Don't see what you're looking for?