How to use HttpsURLConnection with a certificate?
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.
Re: How to use HttpsURLConnection with a certificate?
Moved from Advanced Java.