Fetch SSL certificate from local store using java into sslContext object
<p>I need to perform a rest call by attaching the local ssl certificate.</p>

<p>I do not have any info about KeyStore. I just know there is a Certificate installed in my PC and I have to use the certificate based on details of certificate like "Serial number", "Issuer" etc which i can see in the certificate details in the personal certificate store.</p>

<p>I need to create SSLConnectionSocketFactory object which can be attached to rest call.</p>

<p>My question is how to create the SSLContext object?</p>

<pre><code>  SSLContext sslContext;// How to create this object and pass it to sslSocketFactory.

  HostnameVerifier hostnameVerifier = NoopHostnameVerifier.INSTANCE; 
  SSLConnectionSocketFactory sslSocketFactory = new  SSLConnectionSocketFactory(sslContext, hostnameVerifier); 
</code></pre>