certinfo x509 证书查看工具开源项目

我要开发同款
匿名用户2021年11月28日
62阅读
开发技术GO语言
所属分类Google Go、常用工具包、程序开发
授权协议MIT

作品详情

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
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论