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!

HTTPS - Proxy Authentication Required

843811May 23 2002 — edited Aug 4 2005
Hi,

I'm writing a java application (a client) that try to make an https connection to a server machine. The Client machine is behind a proxy.
and I have the following probelm

java.io.IOException: Unable to tunnel through 192.168.102.20:3128. Proxy returns "HTTP/1.0 407 Proxy Authentication Required"

even if I have done the following settings:

System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
System.setProperty("https.proxyHost",proxyHost);
System.setProperty("https.proxyPort",proxyPort);
System.setProperty("https.proxyUser",user);
System.setProperty("https.proxyPassword",password);

java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());


Please, can someone help me?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 1 2005
Added on May 23 2002
8 comments
3,179 views