Print OpenSSL errors on CA cert errors

This helps figure out why the certificate is not OK.
This commit is contained in:
Markus Mäkelä
2019-11-28 18:57:42 +02:00
parent fb23f3eb3e
commit cd9b82ba09

View File

@ -383,7 +383,7 @@ bool SSL_LISTENER_init(SSL_LISTENER* ssl)
/* Load the CA certificate into the SSL_CTX structure */
if (!SSL_CTX_load_verify_locations(ctx, ssl->ssl_ca_cert, NULL))
{
MXS_ERROR("Failed to set Certificate Authority file");
MXS_ERROR("Failed to set Certificate Authority file: %s", get_ssl_errors());
rval = false;
}