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
标签:证书,ietf,导出,openssl,Fingerprint,SPKI From: https://www.cnblogs.com/yinyue200/p/17130005.html