Reference

abort ssl cert

Available since

  • HAProxy 2.0
  • HAProxy Enterprise 2.0r1

Abort an SSL certificate transaction.

Description Jump to heading

The load balancer can update an SSL certificate that it loaded into memory at startup. The normal 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 finalize the upload using commit ssl cert.

Use abort ssl cert to cancel the transaction instead.

Examples Jump to heading

This example begins a transaction to load a certificate into the load balancer’s runtime memory, but then cancels it with the abort ssl cert command.

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

See also Jump to heading

Do you have any suggestions on how we can improve the content of this page?