-
Notifications
You must be signed in to change notification settings - Fork 8
Carapace API
Paolo Venturi edited this page Oct 1, 2019
·
3 revisions
Carapace features a REST API for almost every action you can perform via Admin UI (get/update configuration, download/upload a certificate, etc...).
Root API URL at /api/.
To upload a certificate (.p12 format) just perform a post request to /api/certificates/{domain}/upload:
curl -k -X POST --data-binary @certificate.p12 https://user:pw@localhost:4001/api/certificates/testdomain/upload/ --user user:pw -H "Content-Type: application/octet-stream"