什麼是CSR?
CSR(Certificate Signing Request)包含您的公鑰與身分資訊,用於向CA申請SSL憑證。
CSR包含資訊
- Common Name (CN): 主域名
- Organization (O): 組織名稱
- Country (C): 國家代碼 TW
- State (ST): 州/省
- Locality (L): 城市
產生CSR
# Linux/Mac\nopenssl req -new -newkey rsa:2048 -nodes \\n -keyout domain.key -out domain.csr\n\n# 驗證CSR\nopenssl req -text -noout -verify -in domain.csrWindows/IIS
開啟IIS管理員 → 伺服器憑證 → 建立憑證要求 → 填寫資訊 → 儲存CSR檔案。