Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

IOException: subject key, Unknown key spec: Invalid RSA modulus size

843798Nov 9 2004 — edited Dec 10 2009
We have upgraded our desktops (win2K and WinXP) to JRE 1.4.2_06 and are running a java applet via an HTTPS call and we get the exception error listed below. We do not get this error when running HTTP, nor do we get it when we step back to JRE 1.3.13 or remove Sun Java all together (and use MS JVM). Our server certs are good, as evidenced by the success with prior releases of Sun Java(or Microsoft's release). What else would cause this?


Caused by: javax.net.ssl.SSLProtocolException: java.io.IOException: subject key, Unknown key spec: Invalid RSA modulus size.

at com.sun.net.ssl.internal.ssl.HandshakeMessage$CertificateMsg.<init>(Unknown Source)

at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(Unknown Source)

at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)

at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.setNewClient(Unknown Source)

at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.superConnect(Unknown Source)

at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connect(Unknown Source)

at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.getInputStream(Unknown Source)

at java.net.HttpURLConnection.getResponseCode(Unknown Source)

at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)

at sun.applet.AppletClassLoader.getBytes(Unknown Source)

at sun.applet.AppletClassLoader.access$100(Unknown Source)

at sun.applet.AppletClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

... 10 more

Caused by: java.security.cert.CertificateParsingException: java.io.IOException: subject key, Unknown key spec: Invalid RSA modulus size.

at sun.security.x509.X509CertInfo.<init>(Unknown Source)

at sun.security.x509.X509CertImpl.parse(Unknown Source)

at sun.security.x509.X509CertImpl.<init>(Unknown Source)

at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)

at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 7 2010
Added on Nov 9 2004
9 comments
5,032 views