SSL/Socket

Discussion in 'Java' started by Dud Hershey, Dec 12, 2006.

  1. Dud Hershey

    Dud Hershey Guest

    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 :)
    Dud Hershey, Dec 12, 2006
    #1
    1. Advertising

  2. Dud Hershey

    Rogan Dawes Guest

    Dud Hershey wrote:
    > 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
    Rogan Dawes, Dec 14, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Krzysztof Pa¼
    Replies:
    1
    Views:
    678
    Krzysztof Pa¼
    Sep 26, 2003
  2. Laszlo Nagy
    Replies:
    1
    Views:
    4,816
    Mark Wooding
    Jan 27, 2009
  3. Jean-Paul Calderone
    Replies:
    0
    Views:
    965
    Jean-Paul Calderone
    Jan 27, 2009
  4. Laszlo Nagy
    Replies:
    0
    Views:
    545
    Laszlo Nagy
    Feb 1, 2009
  5. Replies:
    1
    Views:
    278
Loading...

Share This Page