[Linux]產生CSR檔 for Apache (with mod_ssl) & OpenSSL

1.使用root登入Linux主機後執行下列指令:

openssl req -nodes -newkey rsa:2048 -sha256 -keyout myserver.key -out server.csr

說明:
myserver.key – Linux主機的私鑰key檔
server.csr – 要提供給註冊商的CSR檔
這個指令將會產生一個 server.csr檔和一個2048bit的myserver.key私鑰檔案

2. 你將需要提供以下資訊給你的CSR檔:
Country Name (2 letter code) [AU]: TW
State or Province Name (full name) [Some-State]: Taiwan
Locality Name (eg, city) []: New Taipei City
Organization Name (eg, company) [Internet Widgits Pty Ltd]: AOETEK INTERNATIONAL CO., LTD.
Organizational Unit Name (eg, section) []: MIS
Common Name (eg, YOUR name) []: www.aoetek.com //這裡填寫網站的網址
Email Address []: service@aoetek.com

Please enter the following ‘extra’ attributes to be sent with your certificate request

A challenge password []: 直接Enter
An optional company name []: 直接Enter

3. 你的CSR檔將會產生,直接用vi開啟’server.csr’並選取整個檔案內容貼到註冊商的CSR表單裡。

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *