Adjust incosistent pki log messages (#8965)

This commit is contained in:
Yonas Habteab 2021-11-22 16:06:55 +01:00 committed by GitHub
parent a64089ffc1
commit 361807f7a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,8 @@ Value RequestCertificateHandler(const MessageOrigin::Ptr& origin, const Dictiona
} }
logmsg << " signed by our CA."; logmsg << " signed by our CA.";
} catch (const std::exception &ex) { } catch (const std::exception &ex) {
logmsg << " not signed by our CA"; logmsg << " which couldn't be verified";
if (const unsigned long *openssl_code = boost::get_error_info<errinfo_openssl_error>(ex)) { 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 << ")"; logmsg << ": " << X509_verify_cert_error_string(long(*openssl_code)) << " (code " << *openssl_code << ")";
} else { } else {