Home > php教程 > php手册 > php读取证书信息

php读取证书信息

WBOY
Release: 2016-06-13 11:16:33
Original
1236 people have browsed it

 

这些都是php自带函数

echo $_SERVER["CERT_FLAGS"]."";//使用证书的标识,1或0
echo $_SERVER["CERT_ISSUER"]."";//颁发机构
echo $_SERV R["CERT_SERIALNUMBER"]."";//序列号
echo $_SERVER["CERT_SUBJECT"]."";//主题
echo $_SERVER["HTTPS"]."";//https开关,on或off
echo $_SERVER["HTTPS_KEYSIZE"]."";//密钥长度,128
echo $_SERVER["HTTPS_SECRETKEYSIZE"]."";//加密强度,1024
echo $_SERVER["HTTPS_SERVER_ISSUER"]."";//服务器证书颁发机构
echo $_SERVER["HTTPS_SERVER_SUBJECT"]."";//服务器证书主题


source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template