SSL/Socket

D

Dud Hershey

I wrote a simple java program that uses SSL sockets to connect to a site and
check the certificate, convert it to X509 and check some properties out of
it such as expiration date etc. This works fine.

Now the problem is that I cannot create sockets from inside a company
intranet to places in the Internet that I want to possibly check the
certificate. Is there a way to implement HTTPS protocol that could use
proxies to do the same thing or combine it with socket somehow?

These network layers are really in a gray area in my brains after so many
years of school, so feel free to correct if I'm mixing things up here :)
 
R

Rogan Dawes

Dud said:
I wrote a simple java program that uses SSL sockets to connect to a site and
check the certificate, convert it to X509 and check some properties out of
it such as expiration date etc. This works fine.

Now the problem is that I cannot create sockets from inside a company
intranet to places in the Internet that I want to possibly check the
certificate. Is there a way to implement HTTPS protocol that could use
proxies to do the same thing or combine it with socket somehow?

These network layers are really in a gray area in my brains after so many
years of school, so feel free to correct if I'm mixing things up here :)

In Java 1.5 and later, use the java.net.Proxy class, and the
java.net.Socket constructor that takes a Proxy parameter.

For earlier JRE's, you need to implement this yourself, check out the
HTTP CONNECT method.

Rogan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top