Skip to content

Commit

Permalink
Adjust incosistent pki log messages
Browse files Browse the repository at this point in the history
Checked all the error codes and couldn't find any others that could be raised,
even though the crt was issued by CA, apart from revoked CRTs.
  • Loading branch information
yhabteab committed Aug 13, 2021
1 parent a475755 commit de33f5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/remote/jsonrpcconnection-pki.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ Value RequestCertificateHandler(const MessageOrigin::Ptr& origin, const Dictiona
}
logmsg << " signed by our CA.";
} catch (const std::exception &ex) {
logmsg << " not signed by our CA";
logmsg << " couldn't be verified";

if (const unsigned long *openssl_code = boost::get_error_info<errinfo_openssl_error>(ex)) {
logmsg << ": " << X509_verify_cert_error_string(long(*openssl_code)) << " (code " << *openssl_code << ")";
} else {
Expand Down

0 comments on commit de33f5b

Please sign in to comment.