【发布时间】:2018-11-30 13:22:01
【问题描述】:
我有一个 pem 文件,我正在尝试在 Go 中获取 subject_has。
在命令行中:
wmachs-iphone:platform-tools user$ openssl x509 -noout -subject_hash_old -in ../charles-ssl-proxying-certificate.pem
e64b345
我尝试过使用https://golang.org/pkg/crypto/md5/(运气不好,md5 值不同)和https://godoc.org/github.com/spacemonkeygo/openssl==> 需要帮助的轻微学习曲线。我尝试加载 Pem 文件,但不确定如何获取 MD5 部分:
pemfile,_ := openssl.LoadCertificateFromPEM(buf.Bytes())
有什么想法吗?
【问题讨论】: