登录ssh服务器

openssl genpkey -algorithm RSA -out 2cs.key -pkeyopt rsa_keygen_bits:2048
openssl req -new -key 2cs.key -out 2cs.csr
Country Name (2 letter code) [XX]:CN(输入国家代码)
State or Province Name (full name) []:XINJIANG(输入地区代码)
Locality Name (eg, city) [Default City]:XINJIANG(输入城市代码)
Organization Name (eg, company) [Default Company Ltd]:DUOMA(输入组织代码)
Organizational Unit Name (eg, section) []:DM(输入部门代码)
Common Name (eg, your name or your server's hostname) []:1.cs.com(输入你需要创建的本地域名)
Email Address []:[email protected](输入你的邮箱)
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:Aa123456(创建密码)
An optional company name []:DUOMA(公司名)
openssl x509 -req -days 365 -in 2cs.csr -signkey 2cs.key -out 2cs.crt(生成有效的crt)

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。