cli
cli copied to clipboard
`step ca renew` command could provide clearer output for non-client auth certs
If renewal is attempted with a non-"client auth" cert, the client returns a "tls: bad certificate error", because the mutual TLS handshake fails. The client should output a more useful note. For example:
Because `step ca renew` uses mutual TLS authentication with step-ca, only certificates marked with Client Authentication extended key usage can be renewed. Consider using `step ca certificate` to rekey and request a new certificate.
Look at the certificate and if there's no client auth, attempt to use the token method (used for renew-after-expiry). Either get rid of the mTLS method or allow users to force the token method. Or allow you to force mTLS.
Option 1)
- Token method by default
- mTLS mechanism can be forced