diff --git a/lib/remote/jsonrpcconnection-pki.cpp b/lib/remote/jsonrpcconnection-pki.cpp index baa115d69d0..d2a93f5f0bb 100644 --- a/lib/remote/jsonrpcconnection-pki.cpp +++ b/lib/remote/jsonrpcconnection-pki.cpp @@ -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(ex)) { logmsg << ": " << X509_verify_cert_error_string(long(*openssl_code)) << " (code " << *openssl_code << ")"; } else {