Client has no way of specifying the number of days before expiration to renew a certificate.
Approach
Allow client to specify RenewAt in their POST /api/certificate request. This value must be an integer. If the value is not supplied then it defaults to the value of model.DefaultRenewAt
Testing
Started the server and ran the following curl commands with the output below
Note the RenewAt values
…upplied then default to the default renewal value
This PR addresses the following issues:
https://github.com/ImageWare/TLSential/issues/24
Context
Client has no way of specifying the number of days before expiration to renew a certificate.
Approach
Allow client to specify
RenewAt
in theirPOST /api/certificate
request. This value must be an integer. If the value is not supplied then it defaults to the value ofmodel.DefaultRenewAt
Testing
Started the server and ran the following curl commands with the output below Note the
RenewAt
values