certinfo:Go中用于打印X509 TLS证书的工具

时间:2024-06-13 02:46:20
【文件属性】:

文件名称:certinfo:Go中用于打印X509 TLS证书的工具

文件大小:33KB

文件格式:ZIP

更新时间:2024-06-13 02:46:20

Go

Go的证书信息 一种golang工具,用于以类似于OpenSSL的格式打印x509 TLS证书。 安装 go get github.com/grantae/certinfo 用法 从网站打印证书 package main import ( "crypto/tls" "fmt" "github.com/grantae/certinfo" "log" ) func main () { // Connect to google.com cfg := tls. Config {} conn , err := tls . Dial ( "tcp" , "google.com:443" , & cfg ) if err != nil { log . Fatalln ( "TLS connection failed: " + err . Error ())


【文件预览】:
certinfo-master
----certinfo_test.go(2KB)
----test_certs()
--------root1.key.pem(497B)
--------root1.cert.text(2KB)
--------root1.csr.pem(2KB)
--------leaf3.csr.pem(2KB)
--------leaf3.cfg(781B)
--------leaf3.cert.pem(3KB)
--------leaf2.cert.text(2KB)
--------new-keys.sh(491B)
--------leaf1.csr.pem(2KB)
--------leaf2.cfg(771B)
--------leaf3.key.pem(302B)
--------leaf2.csr.pem(2KB)
--------leaf1.cfg(776B)
--------root1.cfg(2KB)
--------leaf3.csr.text(1020B)
--------README(1KB)
--------leaf1.cert.pem(3KB)
--------root1.csr.text(968B)
--------leaf1.key.pem(493B)
--------leaf2.key.pem(680B)
--------leaf1.cert.text(2KB)
--------leaf2.cert.pem(4KB)
--------make-certs.sh(2KB)
--------leaf3.cert.text(2KB)
--------root1.cert.pem(3KB)
--------leaf1.csr.text(969B)
--------leaf2.csr.text(2KB)
----LICENSE(1KB)
----certinfo.go(19KB)
----README.md(2KB)

网友评论