cli
cli copied to clipboard
[Bug]: `step ca health` returns internal server error if `step-ca` can't be reached
Steps to Reproduce
- DON'T run
step-ca - Run
step ca health(using the rightcontext, if in use)
Your Environment
- OS - macOS 12.x
stepCLI Version - latest dev
Expected Behavior
Show an error indicating the CA isn't reachable
Actual Behavior
$ step ca health --context my-context
The certificate authority encountered an Internal Server Error. Please see the certificate authority logs for more info.
Re-run with STEPDEBUG=1 for more info.
exit status 1
Additional Context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).