Java - How to valiate SSL certificate by inputting a URL, against either Java keystore or Windows CertMgr?
<p>Now that I'm having some HTTP-SSL servers with certificates signed by a CA software. </p>

<p>I have the CA imported in both Windows and Java keystore. </p>

<p>Could anyone please guide me/provide some helpful info for me to write a code to validate SSL certificate by simply inputting a URL (e.g. <a href="https://10.1.1.11" rel="nofollow">https://10.1.1.11</a>), against either Java keystore or Windows CertMgr? 
Just to check if the CA is trusted and the cert is not expired. </p>

<p>Thank you so much! </p>