openssl生成ssl证书

>>> openssl version
>>> mkdir cert
>>> openssl genrsa -out cert/server_key.pem 2048
>>> chmod 600 cert/server_key.pem
>>> openssl req -new -key cert/server_key.pem -out cert/server_csr.pem
>>> openssl req -text -noout -verify -in cert/server_csr.pem
>>> openssl x509 -req -days 365 -in cert/server_csr.pem -signkey cert/server_key.pem -out cert/server_cert.pem

-day指有效期
上一篇:SSL证书过期影响大,网站管理人员需警惕


下一篇:Maven之no dependency information available解决