HAProxy Enterprise Documentation 2.1r1

commit ssl cert

Commit an SSL certificate transaction.

Description

HAProxy Enterprise can update an SSL certificate that it loaded into memory at startup. The workflow to update a certificate is:

  1. Start a transaction that uploads the local certificate file into memory using set ssl cert.

  2. Commit the transaction to update the certificate using commit ssl cert.

Examples

This example begins a transaction to load a certificate into HAProxy Enterprise's runtime memory and then commits it to finalize the upload.

$ echo -e "set ssl cert /etc/hapee-2.1/certs/site.pem <<\n$(cat ./new_certificate.pem)\n" | socat stdio tcp4-connect:127.0.0.1:9999
$ echo "commit ssl cert /etc/hapee-2.1/certs/site.pem" | socat stdio tcp4-connect:127.0.0.1:9999

Next up

Lua scripts