Skip to Main Content

Java Security

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!

Only named ECParameters supported?

843811Apr 12 2007 — edited Sep 10 2008
I'm having this SSLProtocolException while trying to connect to an OpenSSL server using JDK1.6. The same code is working with JDK 1.5. What does this named ECParameter mean? My OpenSSL server is using NID_sect163r2 curve.

Here is part of my code to generate SSLSocket:

SSLContext sslCtx = SSLContext.getInstance("TLS");
MyTrustManager tm[] = new MyTrustManager[1];
tm[0] = new MyTrustManager();
sslCtx.init(null, tm, null);
SSLSocketFactory sf = sslCtx.getSocketFactory();
SSLSocket socket = (SSLSocket)sf.createSocket(server, port);

And the whole SSL communication message is:

SSLContext class: class javax.net.ssl.SSLContext
Protocol: TLS
Provider: SunJSSE version 1.6

trigger seeding of SecureRandom
done seeding SecureRandom
%% No cached client session
*** ClientHello, TLSv1
RandomCookie: GMT: 1176390882 bytes = { 63, 105, 168, 46, 149, 87, 91, 38, 105, 23, 3, 24, 226, 70, 43, 244, 178, 136, 110, 170, 87, 48, 85, 69, 126, 210, 19, 45 }
Session ID: {}
Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA, SSL_DHE_RSA_WITH_DES_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA]

Compression Methods: { 0 }
***
main, WRITE: TLSv1 Handshake, length = 73
main, WRITE: SSLv2 client hello message, length = 98
main, READ: TLSv1 Handshake, length = 74
*** ServerHello, TLSv1
RandomCookie: GMT: 1176390881 bytes = { 139, 43, 74, 230, 203, 174, 215, 84, 222, 72, 118, 176, 186, 121, 11, 238, 27, 118, 98, 13, 102, 187, 18, 232, 68, 153, 5, 142 }
Session ID: {222, 156, 122, 253, 124, 124, 49, 111, 255, 47, 109, 0, 109, 189, 129, 17, 49, 210, 216, 90, 120, 214, 33, 116, 99, 88, 17, 232, 97, 12, 112, 209}
Cipher Suite: SSL_RSA_WITH_3DES_EDE_CBC_SHA
Compression Method: 0
***
%% Created: [Session-1, SSL_RSA_WITH_3DES_EDE_CBC_SHA]
** SSL_RSA_WITH_3DES_EDE_CBC_SHA
main, READ: TLSv1 Handshake, length = 805
main, handling exception: javax.net.ssl.SSLProtocolException: java.io.IOException: Only named ECParameters supported
main, SEND TLSv1 ALERT: fatal, description = unexpected_message
main, WRITE: TLSv1 Alert, length = 2
main, called closeSocket()


Thanks in advance,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2008
Added on Apr 12 2007
1 comment
5,013 views