square / certstrap

Tools to bootstrap CAs, certificate requests, and signed certificates.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Certificate expiry clarity

hegdesandesh25 opened this issue · comments

This is more of a clarification than an issue, Is there a way to pass the custom expiry to the module, the expiry defaults to a year currently.

openssl x509 -enddate -noout -in test.crt
notAfter=May 23 06:26:00 2022 GM

Commend the Incredible work to simplify cert generation!!

Yes, there is a command line flag to the sign operation:

Name: "expires"
Usage: "How long until the certificate expires (example: 1 year 2 days 3 months 4 hours)",