Results 1 to 3 of 3
  1. #1
    dlopez is offline Member
    Join Date
    Jun 2012
    Posts
    2
    Rep Power
    0

    Question SSL/HTTPS Certificate Help

    Hello,

    I didn't know whcih section to post this in on the site. I was hoping that there was a java security page. Anyway, I'm building a small java program for automation. The site requires a login but is also SSL/HTTPS. I can parse the web-page initially, but I don't know how to code the program to save certificates so that I can use them to authenticate against the https site... could anyone help with this? If you need clarification and more vivid detail, let me know.

    Thanks,
    dlopez

  2. #2
    javin.paul is offline Member
    Join Date
    Oct 2011
    Posts
    35
    Rep Power
    0

    Default Re: SSL/HTTPS Certificate Help

    well in order to work with SSL certificate from Java program, your keystore (located in JRE/lib/security) directory must have those certificate well in advance. you can either manually or programatically by using InstallCert.java class, add those certificate in keystore. Some time back I have written a post on How to add or list certificates from keystore or trustStore in Java - Keytool Example, you can check that if it helps.

  3. #3
    dlopez is offline Member
    Join Date
    Jun 2012
    Posts
    2
    Rep Power
    0

    Default Re: SSL/HTTPS Certificate Help

    Thanks for that. I will check that out and see what I can come up with... I tried to manually put the key in the key store (via cmd prompt). However, it wouldn't take. On the business machine, I only have the JRE installed. I'm not for sure if that would be the issue, or not. I'm not as familiar with JAVA as I am with other languages...

Similar Threads

  1. https
    By jamesEFDS in forum Networking
    Replies: 3
    Last Post: 07-13-2011, 05:32 PM
  2. SUN 310-813 certificate
    By koko12 in forum Java Certification
    Replies: 2
    Last Post: 11-24-2009, 06:33 PM
  3. Usage of HTTPS
    By Sayed in forum Advanced Java
    Replies: 8
    Last Post: 12-06-2008, 11:02 AM
  4. HTTPS using certificate
    By MCJP in forum Advanced Java
    Replies: 1
    Last Post: 09-25-2008, 02:48 PM
  5. JDK 1.3 with HTTPS
    By sriram in forum Advanced Java
    Replies: 2
    Last Post: 01-21-2008, 11:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •