Skip to content
Snippets Groups Projects
Commit 2adf8468 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Log a (notice-level) message when creating a self-signed cert

parent 84278e60
No related branches found
No related tags found
No related merge requests found
Pipeline #8647 failed
...@@ -476,6 +476,7 @@ static struct cert_list * get_ssl_cert(scfg_t *cfg, int (*lprintf)(int level, co ...@@ -476,6 +476,7 @@ static struct cert_list * get_ssl_cert(scfg_t *cfg, int (*lprintf)(int level, co
} }
} }
else { else {
lprintf(LOG_NOTICE, "Creating self-signed TLS certificate");
/* Couldn't do that... create a new context and use the cert from there... */ /* Couldn't do that... create a new context and use the cert from there... */
if (!DO("creating TLS context", CRYPT_UNUSED, cryptCreateContext(&cert_entry->cert, CRYPT_UNUSED, CRYPT_ALGO_RSA))) { if (!DO("creating TLS context", CRYPT_UNUSED, cryptCreateContext(&cert_entry->cert, CRYPT_UNUSED, CRYPT_ALGO_RSA))) {
assert_pthread_mutex_unlock(&get_ssl_cert_mutex); assert_pthread_mutex_unlock(&get_ssl_cert_mutex);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment