生成自签署证书
openssl req -x509 -nodes -sha256 -days 365 -newkey rsa:2048 -keyout test.key -out test.crt -subj "/C=cn/ST=bj/O=test/OU=dev/CN=test.cn/emailAddress=admin@test.cn"
验证
openssl x509 -noout -text -in test.crt
出现
Signature Algorithm: sha256WithRSAEncryption
参考文献:
http://techglimpse.com/sha256-hash-certificate-openssl/