找回密碼
 註冊
搜索
查看: 4436|回復: 0

利用 openSSL 產生 FTP 用的 SSL 憑證

[複製鏈接]
發表於 2014-5-5 13:20:26 | 顯示全部樓層 |閱讀模式
  • Make a new ssl private key:
    • Generate a new unencrypted rsa private key in PEM format:   
      openssl genrsa -out privkey.pem 1024
  • To make a self-signed certificate:
    • Create a certificate signing request (CSR) using your rsa private key:
      openssl req -new -key privkey.pem -out certreq.csr
    • Self-sign your CSR with your own private key:   
      openssl x509 -req -days 3650 -in certreq.csr -signkey privkey.pem -out newcert.pem

Reference: http://www.devsec.org/info/ssl-cert.html
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|彩色筆小沛的知識庫

GMT+8, 2024-11-21 17:27 , Processed in 0.019210 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回復 返回頂部 返回列表