You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are commands, eg. openssl s_client -checkend, which return:
exit code 0 for True ("certificate is valid")
exit code 1 for False ("certificate is invalid")
exit code >1 for actual errors.
I'd like to be able to say smth like $`openssl s_client ...`.nothrow(out => out.exitCode <= 1) so that it still fails on genuine errors but lets me have true/false otherwise.
There are commands, eg.
openssl s_client -checkend
, which return:0
for True ("certificate is valid")1
for False ("certificate is invalid")I'd like to be able to say smth like
$`openssl s_client ...`.nothrow(out => out.exitCode <= 1)
so that it still fails on genuine errors but lets me have true/false otherwise.Right now I'm doing it like:
The text was updated successfully, but these errors were encountered: