How to create a PEM file for HAProxy Configure SSL Certificate

preview_player
Показать описание
How to create a PEM file for HAProxy Configure SSL Certificate
1
Generate a unique private key KEY

Note:
Content in this file start with -----BEGIN RSA PRIVATE KEY-----

2
Generating a Certificate Signing Request CSR

Note:
Content in this file start with -----BEGIN CERTIFICATE REQUEST-----

3
Creating a Self-Signed Certificate CRT

Note:
Content in this file start with -----BEGIN CERTIFICATE-----

4

Note:
This pem file contains 2 sections certificates, one start with -----BEGIN RSA PRIVATE KEY----- and another one start with -----BEGIN CERTIFICATE-----

5
Specify PEM in haproxy config
listen haproxy
mode http
option http-server-close
option forwardfor
reqadd X-Forwarded-Proto:\ https
reqadd X-Forwarded-Port:\ 443
option forwardfor if-none
balance roundrobin
option abortonclose
server 192.168.100.224 192.168.100.224:1443 check inter 10s rise 2 fall 3 ssl verify none

6
Restart haproxy
$ sudo service haproxy restart
Рекомендации по теме
Комментарии
Автор

You solved my https problem, thanks mate!

NeilWang-TL
Автор

Hi, thanks for the video.
Can SSL termination work for TCP mode (not HTTP)?
With one frontend but several backend points in roundrobin sequence?

omancoding
Автор

The system cannot find the path specified.
when create .pem file

actionsportsupdate
Автор

Hi there good video bro.Can this be used with fluxion to stop targets getting warning??

-jamiestorch-