HAProxy : SSL/TLS Settings2018/12/04 |
Configure HAProxy with SSL/TLS connection.
The connection between HAproxy and Clients are encrypted with SSL. ( HAproxy - backends are normal ) In addition to previous HTTP setting, This example is based on the environment like follows. -----------+---------------------------+--------------------------+------------ | | | |10.0.0.30 |10.0.0.51 |10.0.0.52 +----------+-----------+ +-----------+----------+ +-----------+----------+ | [ dlp.srv.world ] | | [ node01.srv.world ] | | [ node02.srv.world ] | | HAProxy | | Web Server#1 | | Web Server#2 | +----------------------+ +----------------------+ +----------------------+ |
[1] | |
[2] | Configure HAProxy. |
concatinate cert and key root@dlp:~# cd /etc/letsencrypt/live/dlp.srv.world root@dlp:/etc/letsencrypt/live/dlp.srv.world# cat fullchain.pem privkey.pem > haproxy.pem root@dlp:~#
root@dlp:~#
vi /etc/haproxy/haproxy.cfg # add into frontend section (if not need to listening 80 port)
frontend http-in
bind *:80
bind *:443 ssl crt /etc/letsencrypt/live/dlp.srv.world/haproxy.pem
root@dlp:~# systemctl restart haproxy |
[3] | Verify working normally to access with HTTPS to frontend HAproxy Server. |
Sponsored Link |
|