如何导出证书的 SPKI Fingerprint

openssl x509 -in cert.pem -pubkey -noout | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64

或者参见https://datatracker.ietf.org/doc/html/draft-ietf-websec-key-pinning-21#appendix-A

posted @ 2023-02-17 14:22  yinyue200  阅读(18)  评论(0编辑  收藏  举报
知识共享许可协议
本博客原创内容默认采用知识共享署名 4.0 国际许可协议进行许可。