Automate SSL Certificates API
The api is based on the automate-ssl-certificates repo from a friend and myself. I just wanted to do something with go and decided to wrap those two scripts with an api for an easier and faster use.
Image
docker pull ghcr.io/pscldev/automate-ssl-certificates-api:latest
Envs
Env | Type | Required |
---|---|---|
PORT | int | |
PROD | bool | |
NETLOG_URL | string | |
SENTRY_DSN | string |
Routes
config
and cert
routes contain a prefix: /api/v1
Config
- Get makeRoot.sh :
GET /config/root
- Get makeCertificate.sh :
GET /certificate
- Post your domain name settings :
POST /config
Cert
- Get all certs :
GET /cert
- Get root cert archive :
GET /cert/root
- Get cert by name :
GET /cert/:name
- Create a new certificate :
POST /cert
- Recreate a existing certificate :
PATCH /cert
- Delete a cert by name :
DELETE /cert/:name
Health w/o prefix
- Check API health :
GET /health