Sucuri API v2 — Add SSL Certificate
API v2 - Add HTTPS/SSL Certificate (add_certificate)
Only available for professional or business plans.
sh
curl 'https://waf.sucuri.net/api?v2' \
--data 'k=API_KEY' \
--data 's=API_SECRET' \
--data 'a=add_certificate' \
--data "private_key=PRIVATE_KEY" \
--data "ssl_certificate=SSL_CERTIFICATE"
PRIVATE_KEY and SSL_CERTIFICATE are the literal contents of the files. On Unix you can substitute:
sh
--data "private_key=`cat /path/to/private/key`"
--data "ssl_certificate=`cat /path/to/ssl/certificate.crt`"
This is the endpoint used during onboarding to install the bridge cert from SSLStore on Sucuri.