certinfo是一个CLI工具,用来查看x509证书信息。此工具与opensslx509-in<file>-text命令相似,不过它还支持处理链式、多文件和TCP地址。当使用TCP地址参数时,TLS/SSL版本也会打印出来。
用法
certinfo[flags][<file>|<host:port>...]+---------------------------------------------------------------------------------------------------------------+|optionalflags|+-----------+---------------------------------------------------------------------------------------------------+|-chains|whethertoprintverifiedchainsaswell(onlyapplicableforhost)||-expiry|printexpiryofcertificates||-insecure|whetheraclientverifiestheserver'scertificatechainandhostname(onlyapplicableforhost)||-pem|whethertoprintpemaswell||-pem-only|whethertoprintonlypem(usefulfordownloadingcertsfromhost)||-version|certinfoversion||-help|help|+-----------+---------------------------------------------------------------------------------------------------+---[vault.com:443TLS1.2]---Version:3SerialNumber:15424177460318123999SignatureAlgorithm:SHA256-RSAType:end-entityIssuer:CN=GoDaddySecureCertificateAuthority-G2,OU=https://certs.godaddy.com/repository/,O=GoDaddy.com\,Inc.,L=Scottsdale,ST=Arizona,C=USValidityNotBefore:Apr805:28:122020UTCNotAfter:Apr1702:03:382022UTCSubject:CN=*.vault.com,OU=DomainControlValidatedDNSNames:*.vault.com,vault.comIPAddresses:KeyUsage:DigitalSignature,KeyEnciphermentExtKeyUsage:ServerAuth,ClientAuthCA:falseVersion:3SerialNumber:7SignatureAlgorithm:SHA256-RSAType:intermediateIssuer:CN=GoDaddyRootCertificateAuthority-G2,O=GoDaddy.com\,Inc.,L=Scottsdale,ST=Arizona,C=USValidityNotBefore:May307:00:002011UTCNotAfter:May307:00:002031UTCSubject:CN=GoDaddySecureCertificateAuthority-G2,OU=https://certs.godaddy.com/repository/,O=GoDaddy.com\,Inc.,L=Scottsdale,ST=Arizona,C=USDNSNames:IPAddresses:KeyUsage:CertSign,CRLSignExtKeyUsage:CA:trueVersion:3SerialNumber:1828629SignatureAlgorithm:SHA256-RSAType:intermediateIssuer:OU=GoDaddyClass2CertificationAuthority,O=TheGoDaddyGroup\,Inc.,C=USValidityNotBefore:Jan107:00:002014UTCNotAfter:May3007:00:002031UTCSubject:CN=GoDaddyRootCertificateAuthority-G2,O=GoDaddy.com\,Inc.,L=Scottsdale,ST=Arizona,C=USDNSNames:IPAddresses:KeyUsage:CertSign,CRLSignExtKeyUsage:CA:true
评论