Home >Backend Development >PHP Tutorial >How to obtain certificate information under a domain name?

How to obtain certificate information under a domain name?

WBOY
WBOYOriginal
2016-07-06 13:51:451510browse

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

How to obtain certificate information under a domain name?

How to obtain certificate information under a domain name?

How to obtain certificate information under a domain name?

I don’t know how to obtain the certificate information.

Reply content:

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

How to obtain certificate information under a domain name?

How to obtain certificate information under a domain name?

How to obtain certificate information under a domain name?

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn