1.查看是否安装httpd和SSL(如果有就可以进行下一步)[root@localhost ~]# rpm -qa | grep httpdhttpd-tools-2.2.15-47.el6.centos.4.x86_64[root@localhost ~]# rpm -qa | grep sslopenssl-1.0

微信扫一扫

centOS系统生成csr

17小时前

1.查看是否安装httpd和SSL(如果有就可以进行下一步)


[root@localhost ~]# rpm -qa | grep httpd


httpd-tools-2.2.15-47.el6.centos.4.x86_64

[root@localhost ~]# rpm -qa | grep ssl

openssl-1.0.1e-42.el6_7.4.x86_64

openssl-devel-1.0.1e-42.el6_7.4.x86_64

docbook-style-dsssl-1.79-10.el6.noarch

mod_ssl-2.2.15-47.el6.centos.4.x86_64

nss_compat_ossl-0.9.6-1.el6.x86_64


2.生成服务器私钥(以abc.cn为例)


[root@localhost /]# cd /opt

[root@local opt]# openssl genrsa -out abc.cn.key 2048

Generating RSA private key, 2048 bit long modulus

...............+++

...............+++

e is 65537 (0x10001)


3.用私钥server.key文件生成证书请求文件csr

[root@local opt]# openssl req -new -out abc.cn.csr -sha256 -key abc.cn.key

You are about to be asked to enter information that will be incorporated

into your certificate request.


There are quite a few fields but you can leave some blank

For some fields there will be a default value,

If you enter '.', the field will be left blank.

-----

Country Name (2 letter code) [XX]:CN #国家

State or Province Name (full name) []:zhejiang #省份

Locality Name (eg, city) [Default City]:hangzhou #城市

Organization Name (eg, company) [Default Company Ltd]:22 #公司名称/个人直接填写姓名

Organizational Unit Name (eg, section) []:22 #部门名称/个人直接填写姓名

Common Name (eg, your name or your server's hostname) []:abc.cn #需要申请的域名

Email Address []:22@22.cn


Please enter the following 'extra' attributes

to be sent with your certificate request #提示你输入一个密码,不用理他直接回车

A challenge password []:

An optional company name []:

[root@local opt]#


以上内容来自ePower企服引擎推送
分享 0 曝光 91 浏览 4 互动 0

赋能伙伴,掘进万亿企业服务市场!

如果你想在数字化、知识产权、商标代理服务等企业服务方向创业或建立服务平台,请联系我们,协助您快速启动!

提交成功,感谢您的参与

支持 反馈 管理

长按下方二维码,加我微信

微信号
复制微信号

打开微信加我好友

ePower企服引擎

通过微信关注公众号