Differences between revisions 4 and 5
Revision 4 as of 2021-11-18 23:24:13
Size: 28
Comment:
Revision 5 as of 2021-11-18 23:26:20
Size: 565
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Describe HAProxy/SSL here. = HAProxy SSL =

<<TableOfContents>>

----



== Generation ==

`haproxy(1)` uses '''PEM-formatted certificates''' for encryption. This is simply the certificate and private key concatenated.

The following script can be used by either a `cron` job or set as a `certbot(1)` [[Certbot#Configuration|post-installation hook]].

{{{
#!/bin/sh

domain="example.com"
dir="/etc/letsencrypt/live/${domain}"

cat "${dir}/fullchain.pem" "${dir}/privkey.pem" > "${dir}/${domain}.pem"
}}}

----



== Configuration ==



----
CategoryRicottone

HAProxy SSL


Generation

haproxy(1) uses PEM-formatted certificates for encryption. This is simply the certificate and private key concatenated.

The following script can be used by either a cron job or set as a certbot(1) post-installation hook.

domain="example.com"
dir="/etc/letsencrypt/live/${domain}"

cat "${dir}/fullchain.pem" "${dir}/privkey.pem" > "${dir}/${domain}.pem"


Configuration


CategoryRicottone

HAProxy/SSL (last edited 2023-04-08 17:30:16 by DominicRicottone)