如何建立一個ssl 的 cert. , xxx.crt 檔
第一 , 輸入以下句子 , 做出 ca.key 的file
打 openssl genrsa -out ca.key 1024
第二 , 輸入以下句子 , 做出 ca.csr 的 file
打 openssl req -new -key ca.key -out ca.csr
再回答以下問題
Note: You will be asked several pieces of information as follows:
Country Name (2 letter code) [GB]:
State or Province Name (full name) [Berkshire]:
Locality Name (eg, city) [Newbury]:
Organization Name (eg, company) [My Company Ltd]:
公司名
Organizational Unit Name (eg, section) []:
公司部門
Common Name (eg, your name or your server's hostname) []:
輸入server 的名 , pop.yourdomain.com
Email Address []:
please enter the following 'extra' attributesto be sent with your certificate request
A challenge password []:
An optional company name []:
最後 , 做個ca.crt 證書出來 , day 是 365 日 , 可改做3650
打 openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
沒有留言:
張貼留言