OpenSSL 下載和私鑰證書、CERTIFICATE證書生成


openssl 是生成私鑰和公鑰證書的重要工具。

Windows如何安裝OpenSSL:

    官網:https://www.openssl.org/community/mailinglists.html  需要自己下載編譯。

    exe安裝文件下載地址:https://slproweb.com/products/Win32OpenSSL.html  

     選擇 Win64 OpenSSL v1.1.1d 43M的完整版本。

 

生成證書命令:

1.1 生成私鑰命令: openssl>genrsa -aes256 -out privatekey.pem 2048

     When running this command, you will be prompted to enter the pass phrase for the private key. This is your secure pass phrase and should not be shared with anyone. -This pass phrase can be anything like a password.

    生成私鑰的過程用會要求你填寫私鑰密碼:建議填寫8位數字作為密碼,主要保存好密碼。


1.2 CSR 證書文件生成: openssl>req -new -sha256 -key privatekey.pem -out certreq.csr

      Once you enter the command for generating CSR, please follow the instructions on the prompt and enter the details being requested. One of the fields prompted for would be "Common Name (e.g. server FQDN or YOUR name)"..

      根據提示輸入國家、城市、地區、公司、部門和聯系人郵箱、證書密碼等信息。

1.3 關於私鑰轉公鑰。這里就不寫了。 

 

2. 支付寶提供了生成RSA秘鑰工具,網址如下。 

   https://docs.open.alipay.com/291/105971

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM