這些都是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"]."";//服務器證書主題