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. Advertisements

  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. Advertisements

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. 620
    Replies:
    2
    Views:
    1,261
    Murat Tunaboylu
    Jan 6, 2004
  2. CW
    Replies:
    2
    Views:
    741
  3. Sean Wolfe
    Replies:
    1
    Views:
    2,562
    Joerg Jooss
    Apr 28, 2005
  4. emukang
    Replies:
    0
    Views:
    3,274
    emukang
    Dec 20, 2005
  5. Krzysztof Pa¼
    Replies:
    1
    Views:
    872
    Krzysztof Pa¼
    Sep 26, 2003
  6. Laszlo Nagy
    Replies:
    1
    Views:
    7,183
    Mark Wooding
    Jan 27, 2009
  7. Steve Holden
    Replies:
    1
    Views:
    997
  8. Replies:
    1
    Views:
    518
Loading...