- Docker
- Docker compose
- Bash
- Go
- Run the following executable
./build
in the root folder This will take care of building images and the volumes and finally migrating the database
NB: If you build again, it will drop the database, but won't remove the volumes.
docker-compose up certmanager
Run it on browser at
http://localhost:3000
NB: Right now, we run it in development mode as we are forcing SSL on production.
If the browser automatically redirects to https
, this stackoverflow post can be useful
./test
docker-compose down certmanager
GET /customer/
POST /customer/
DELETE /
{
"email":"example@example.com"
}
GET /customer/{cust_id}/certificates"
GET /customer/{cust_id}/certificate/{cert_id}/key"
Allows download of only active certificate key
GET /customer/{cust_id}/certificate/{cert_id}/body
Allows download of only active certificate body
PATCH /{cust_id}/certificate/{cert_id}?active=true/false
NB: PATCH cannot be included as a payload in buffalo which is what we are using right now.