彩色筆小沛的知識庫

 找回密碼
 註冊
搜索
查看: 2495|回復: 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, 2019-11-22 19:03 , Processed in 0.019422 second(s), 9 queries , MemCache On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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