Home >Backend Development >PHP Tutorial >How to obtain certificate information under a domain name?
I now have a batch of domain names, and I want to check at one time whether the certificate of that domain name has expired.
The expiration time information of the certificate can be opened and viewed with a browser
I don’t know how to obtain the certificate information.
I now have a batch of domain names, and I want to check if the certificate of that domain name has expired at once.
The expiration time information of the certificate can be opened and viewed with a browser
I don’t know how to obtain the certificate information.
Finally solved it using shell.
echo | openssl s_client -connect login.xunlei.com:443 2>/dev/null | openssl x5 09 -noout -dates