Results 1 to 2 of 2
  1. #1
    Mr.Solomon is offline Member
    Join Date
    Mar 2012
    Posts
    1
    Rep Power
    0

    Default How to use HttpsURLConnection with a certificate?

    Hi,

    I'm trying to develop some code that accesses a https server and I am using HttpsURLConnection. The server itself requires a certificate for authentication. However I am a) not that familiar with how certificates b) how to tell HttpsURLConnection where to locate the certificate (I get an error about not finding the certificate directory) and c) if the certificate has to be in any format. I have looked online but couldn't see anything definitive that showed how this can be done? Does anyone know of a good tutorial or how this is done? Thanks in advance.

    Solomon.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: How to use HttpsURLConnection with a certificate?

    Moved from Advanced Java.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. HttpsUrlConnection Signature does not match.
    By cjtjamandra in forum Advanced Java
    Replies: 0
    Last Post: 12-28-2011, 02:56 PM
  2. certificate java
    By dew1 in forum NetBeans
    Replies: 0
    Last Post: 06-25-2011, 08:23 AM
  3. Working with HttpsURLConnection
    By JugheadJones in forum Networking
    Replies: 1
    Last Post: 02-21-2011, 09:38 AM
  4. SUN 310-813 certificate
    By koko12 in forum Java Certification
    Replies: 2
    Last Post: 11-24-2009, 06:33 PM
  5. Java certificate
    By Nick15 in forum Java Certification
    Replies: 2
    Last Post: 11-12-2007, 07:02 AM

Posting Permissions

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