配置openssl以支援Https訪問

來源:互聯網
上載者:User

標籤:style   blog   http   color   os   ar   使用   strong   sp   

 

一、Windows + apache 下,  軟體是xampp

  說明:參考(http://blog.sina.com.cn/s/blog_5d7dbbdd0101042n.html)

  1. 將認證產生的設定檔(http://tud.at/programm/openssl.cnf) 複製到 apache/conf/sslwork/openssl.cnf

  2. cmd進入apache/bin目錄(必須是 openssl.exe 所在目錄)。  

    E:\mySoft\xampp\apache\bin>openssl req -config ../conf/sslwork/openssl.cnf -new-out server.csr  

  3. 逐次填寫內容. 設密碼。

    openssl rsa -in privkey.pem -out examp.key

    openssl x509 -in examp.csr -out examp.crt -req -signkey examp.key -days 730

  4.這當前進入的目錄(***apache/bin)產生了幾個檔案, 將 examp.key, examp.crt 複製到

    apache/conf/ssl.crt/examp.crt

    apache/conf/ssl.key/examp.key

  5. 依照樣本配置 http-ssl.conf.

 

  自己產生的認證沒什麼意義,僅供本地開發。

      VeriSign的過於昂貴,最便宜的要 2000一年。我申請了 startSsl.com 的免費版,當然它的基礎付費版也才 $49一年。

  

  另外一個問題是, 如果你的運行系統是 windows xp sp2 以下, 並不支援sha2加密的,可以使用sha1加密,或者下載補丁 (官方補丁下載)

 

Linux記錄暫時無。

配置openssl以支援Https訪問

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.