Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add more info to the DEPTH_ZERO_SELF_SIGNED_CERT error #5045

Open
binarykitchen opened this Issue Mar 17, 2013 · 0 comments

Comments

Projects
None yet
2 participants

If you see the other ticket joyent#4984 you will see that I needed a while to find out about which one certificate node was talking about.

Just a DEPTH_ZERO_SELF_SIGNED_CERT and a stack trace not pointing to the real origin of the cause aren't very helpful for locating the problem.

In my app I had multiple ssl files for different component.

For this feature request I suggest to print an error like this instead:
Error: Cannot verify self-signed certificate /path/to/xxx.crt because depth is zero.

Like that I know the path to the certificate, what the problem is and know what to do, i.E. disable SSL verification or prepend root issuer(s) into the crt file.

I'm sure this will reduce the number of questions or bug reports from others encountering the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment