Rsa Keygenerator Not Available

Posted onby
Active1 year, 3 months ago

Red Hat Customer Portal. Skip to main content. Main Navigation. Products & Services. SunTlsRsaPremasterSecret KeyGenerator not available' when running secured. RSA (1024, 2048) These. Implementation for the specified algorithm is not available from the specified. KeyPairGenerator has not been initialized explicitly. Ssh-keygen -t rsa -b 4096 ssh-keygen -t dsa ssh-keygen -t ecdsa -b 521 ssh-keygen -t ed25519. This maximizes the use of the available randomness. And make sure the.

I encountered an error when my application tries to load a RSA Algorithm provider class from JAVA. The exception stack is as follow: javax.jms.JMSException: RSA. Standard Algorithm Name Documentation. The RSA signature algorithm, which does not use a digesting algorithm (for example, MD5/SHA1) before performing the RSA.

Rsa Premaster Secret Error Suntlsrsapremastersecret Keygenerator Not Available

Artjom B.
54.2k18 gold badges88 silver badges165 bronze badges
bearer1024bearer1024

4 Answers

If you run the following code, you will get a list of signature algorithms supported by your Java installation.

When I run it (Windows, Java 1.8.0_65), I get:

Rsa key generator

As you can see, RSA is not a valid signature algorithm.
Maybe NONEwithRSA is what you're after?

AndreasAndreas
88.7k4 gold badges73 silver badges138 bronze badges

Please always refer to the documentation

Omer MalikOmer Malik

Specify a valid algorithm. The hash algorithm needs to be specified. For example, SHA256withRSA.

ericksonerickson
229k43 gold badges339 silver badges433 bronze badges

I've checked the algorithms supported by java versions(1.7) & (1.8) in my machine. One of my project runs on jdk 1.7.0_80, which doesn't support SHA224withRSA algorithm, if you're in same situation then upgrade to newer version of java atleast to (Java SE 7 Update 131)as I've read it should have similar algorithms as java 8. If no option to update java then try adding org.bouncycastlebcprov-jdk15on maven dependency in pom or a jar file to your project & also in java code add where you build SSLContext/HttpClient include below line:

Security.addProvider(new BouncyCastleProvider());

Also tried installing Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7, but it hasn't worked !!

srinivasysrinivasy
1,2592 gold badges7 silver badges19 bronze badges

Not the answer you're looking for? Browse other questions tagged javacryptographyrsadigital-signature or ask your own question.

Last updated on JULY 08, 2019

Applies to:

Portal - Version 11.1.1.6.0 to 11.1.1.7.0 [Release FMW11g]
Information in this document applies to any platform.

Rsa Key Generator


Ssh Rsa Key Generator

Symptoms

Oracle Portal 11gR1 (11.1.1.6) is installed and running using an old JDK 1.6 version. After upgrading to JDK 1.7.0_80, the Portal Page returns HTTP-500 and the log shows the following error:

Rsa Key Generator Not Available

oracle.webdb.utils.PortalExceptionImpl: I/O Error dispatching request
at oracle.portal.PortalException.(Unknown Source)
at oracle.webdb.dispatcher.DispatcherException.(Unknown Source)
at oracle.webdb.dispatcher.HTTPDispatcher.dispatch(Unknown Source)
at oracle.webdb.dispatcher.CacheDispatcher.dispatch(Unknown Source)
at oracle.webdb.page.ContentFetcher.run(Unknown Source)
Caused by: javax.net.ssl.SSLKeyException: RSA premaster secret error
at sun.security.ssl.RSAClientKeyExchange.(RSAClientKeyExchange.java:89)
at sun.security.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:902)
. . .
Caused by: java.security.NoSuchAlgorithmException: SunTls12RsaPremasterSecret KeyGenerator not available
at javax.crypto.KeyGenerator.(KeyGenerator.java:169)
at javax.crypto.KeyGenerator.getInstance(KeyGenerator.java:223)
at sun.security.ssl.JsseJce.getKeyGenerator(JsseJce.java:268)
at sun.security.ssl.RSAClientKeyExchange.(RSAClientKeyExchange.java:80)
... 22 more
caused by: javax.net.ssl.SSLKeyException: RSA premaster secret error
at sun.security.ssl.RSAClientKeyExchange.(RSAClientKeyExchange.java:89)
at sun.security.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:902)

Changes

Upgrading the JDK version

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

Rsa Keygenerator Not Available

Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.