#证书 #HTTPS #摘要 #查看 #服务器 #主题 #证书链

app https-cert-info

查看服务器的 HTTPS 证书摘要

1 个不稳定版本

0.1.0 2020年9月24日

#9#证书链

MIT/Apache

17KB
248 代码行

https-cert-info

一个命令行工具,输出服务器的 HTTPS 证书(或证书链)摘要

安装

Cargo

cargo install https-cert-info

手动

最新版本下载二进制文件,并将其放置在 $PATH 上的某个位置。

示例

$ https-cert-info google.com
Connecting to google.com:443 (took 122ms)
Performing handshake for google.com (took 458ms)

Subject     *.google.com (C=US, ST=California, L=Mountain View, O=Google LLC, CN=*.google.com)
Issued by   GTS CA 1O1 (C=US, O=Google Trust Services, CN=GTS CA 1O1)
Valid from  28 days ago (2020-08-26T08:08:49Z)
Expires in  55 days (2020-11-18T08:08:49Z)

Subject Alternative Names:
  *.google.com
  *.android.com
  *.appengine.google.com
  *.bdn.dev
  *.cloud.google.com
  *.crowdsource.google.com
  *.datacompute.google.com
  *.g.co
  *.gcp.gvt2.com
  *.gcpcdn.gvt1.com
    and 63 more.

# using SNI to request a different domain
$ https-cert-info google.com -d www.google.com
Connecting to google.com:443 (took 17ms)
Performing handshake for www.google.com (took 461ms)

Subject     www.google.com (C=US, ST=California, L=Mountain View, O=Google LLC, CN=www.google.com)
Issued by   GTS CA 1O1 (C=US, O=Google Trust Services, CN=GTS CA 1O1)
Valid from  28 days ago (2020-08-26T08:14:23Z)
Expires in  55 days (2020-11-18T08:14:23Z)

Subject Alternative Names:
  www.google.com

许可协议

MIT 或 Apache-2.0

依赖

~15–26MB
~462K SLoC