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

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top