How can I check if ssl certificate where the script is over https

Hi,

I can check if script is over https by checking the server port or server envoronment, but how can I check if ssl certificate where the script is over https, is valid and active too?

if the page loads at all then the ssl certificate is valid and active. Without the certificate the page content can’t be encrypted to send.

If certificate is expired, browser gives alert and ask if you want to continue, if you click yes you can load and see the page, just lock icon has a red cross. I doubt with expired certificate you will be completely banned accessing the page, so I guess we still need to verify the certificate? Please advice if I am wrong?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.