Openssl创建证书的方法

上一篇 / 下一篇  2014-09-17 16:08:58 / 个人分类:linux

步骤 1 创建服务器证书秘钥tomcat.key

root@localhost conf]# openssl genrsa -des3 -out tomcat.key 2048

 

步骤 2 创建服务器证书的申请文件tomcat.csr

[root@localhost conf]# openssl req -new -key tomcat.key -out tomcat.csr

 

步骤 3 创建自当前日期起有效期为期十年的服务器证书tomcat.crt

[root@localhost conf]# openssl x509 -req -days 3650 -in tomcat.csr -signkey tomcat.key -out tomcat.crt


TAG: SSL ssl openssl

 

评分:0

我来说两句

Open Toolbar