javax.net.ssl.SSLKeyException: RSA premaster secret error

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via https://bugzilla.redhat.com/bugzilla/ by Robert Marcano, 1 year ago
via https://bugzilla.redhat.com/bugzilla/ by Donald Cohen, 1 year ago
via appdynamics.com by Unknown author, 2 years ago
RSA premaster secret error
javax.net.ssl.SSLKeyException: RSA premaster secret error
at javax.crypto.KeyGenerator.(KeyGenerator.java:141)
at javax.crypto.KeyGenerator.getInstance(KeyGenerator.java:191)
at sun.security.ssl.JsseJce.getKeyGenerator(JsseJce.java:240)
at sun.security.ssl.RSAClientKeyExchange.(RSAClientKeyExchange.java:108)
at sun.security.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:703)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:228)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:610)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:546)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:913)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1158)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1185)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:440)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)
at undefined.LoginFormPanel.cmdOK_ClickMYSQL(LoginFormPanel.java:259)
at undefined.LoginFormPanel.cmdOK_Click(LoginFormPanel.java:237)
at undefined.LoginFormPanel$1.construct(LoginFormPanel.java:494)
at undefined.SwingWorker$2.run(SwingWorker.java:107)
at java.lang.Thread.run(Thread.java:636)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 months ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.