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!

Too long time for initialize the SSL Context

843811Feb 22 2005 — edited Feb 23 2005
I�m having problems initiliacing the SSL Context when opening a connection with a HTTPS server.
In my code i have wrote:

private SSLContext sc = null;
sc = SSLContext.getInstance("SSL", "SunJSSE");
sc.init(null, trustAllCerts,new java.security.SecureRandom());

in addittion to other lines.

The init method is taking 10 seconds.

Do you have any idea what could be wrong here?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2005
Added on Feb 22 2005
4 comments
488 views