I now have a batch of domain names and want to check that the certificate for that domain name expires at one time. You can use a browser to view the expiration time of the certificate. you do not know how to obtain the certificate information.
I now have a batch of domain names and want to check that the certificate for that domain name expires at one time.
You can view the certificate expiration time in a browser.
I don't know how to obtain the certificate information.
Reply content:
I now have a batch of domain names and want to check that the certificate for that domain name expires at one time.
You can view the certificate expiration time in a browser.
I don't know how to obtain the certificate information.
Finally, the shell is used to solve the problem.
Echo | openssl s_client-connect login.xunlei.com: 443 2>/dev/null | openssl x5 09-noout-dates