LoginSignup
6
7

More than 5 years have passed since last update.

StartSSL+haproxyで無料でSSL対応サイトを作るのメモ

Posted at

無料のSSL証明書StartSSLを活用する
http://qiita.com/k-shogo/items/870b6d3939dd08da2de4

超私的 Undocumented HAProxy Vol.1 〜SSL サーバー証明書の設置〜
http://qiita.com/inokappa/items/9da6c90e1c569aa6c017

 
上記を参考にStartSSLで手続きをします。
で、もろもろのファイルを揃えたら、証明書を作ります。

cat startssl.crt ca.pem sub.class1.server.ca.pem startssl.key > hogehoge.com.pem

作った証明書を適当に配置

cp -p hogehoge.com.pem /etc/haproxy/ssl/.

で、haproxy.cfgに設定を追加

haproxy.cfg
frontend all_ssl
    # 受け入れる接続元
    bind 0.0.0.0:443 ssl crt /etc/haproxy/ssl/hogehoge.com.pem

で、haproxyを再起動して、httpsでアクセスできたら成功です。

6
7
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7