Closed d1str0 closed 4 years ago
TODO
comment in 4893de4555285e55d312d0b62aa4a2f7bbc9836f in #18. cc @ImageWare.TODO
comment in 4893de4555285e55d312d0b62aa4a2f7bbc9836f in #18. cc @ImageWare.Each of the above endpoints now requires Authorization: Secret {secret} instead of the usual Bearer and JWT. This means certs can be downloaded ONLY if you know the secret per certificate.
Certificate secrets generated randomly in the same manner as Super Admin passwords.
All require auth
GET /api/certificate/{id}/cert Returns the certificate file
GET /api/certificate/{id}/issuer Returns the issuer's certificate as a file
GET /api/certificate/{id}/privkey Returns the certificate's private key as a file