mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Improve the error message for GetX509Certificate().
This commit is contained in:
parent
bfca571083
commit
492aed030e
@ -148,7 +148,8 @@ shared_ptr<X509> GetX509Certificate(const String& pemfile)
|
|||||||
if (cert == NULL) {
|
if (cert == NULL) {
|
||||||
BOOST_THROW_EXCEPTION(openssl_error()
|
BOOST_THROW_EXCEPTION(openssl_error()
|
||||||
<< boost::errinfo_api_function("PEM_read_bio_X509_AUX")
|
<< boost::errinfo_api_function("PEM_read_bio_X509_AUX")
|
||||||
<< errinfo_openssl_error(ERR_get_error()));
|
<< errinfo_openssl_error(ERR_get_error()))
|
||||||
|
<< boost::errinfo_file_name(pemfile));
|
||||||
}
|
}
|
||||||
|
|
||||||
BIO_free(fpcert);
|
BIO_free(fpcert);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user