新增證書
請輸入底下指令
openssl req -new -key mypc.key -out mypc.csr -sha512
請輸入相關證書訊息及密碼後,按enter會輸出mypc.csr檔
-----
Country Name (2 letter code) [XX]:TW
State or Province Name (full name) []:Taiwan
Locality Name (eg, city) [Default City]:taipei
Organization Name (eg, company) [Default Company Ltd]:
Organizational Unit Name (eg, section) []:IT
Common Name (eg, your name or your server's hostname) []:mypc
Email Address []:a58479@gmail.com
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:123456
An optional company name []:IT
新增自簽憑證 openssl x509 -req -days 365 -in mypc.csr -signkey mypc.key -out mypc.crt -sha512