aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-10-18 18:07:28 +0000
committerOmar Polo <op@omarpolo.com>2023-10-18 18:07:28 +0000
commit07d86a0beb5411553390fb8bfc1439db9ec66ca0 (patch)
tree789308f5607415b5ca83ef5f622b5c7e0314184b /utils.c
parentbab32701fbefecd4e2181dc03821067f4d7dbe28 (diff)
tweak certificate generation log messages
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/utils.c b/utils.c
index ce8be6e..7ceea2e 100644
--- a/utils.c
+++ b/utils.c
@@ -218,8 +218,8 @@ gencert(const char *hostname, const char *certpath, const char *keypath,
FILE *f;
const unsigned char *host = (const unsigned char*)hostname;
- log_info("generating new certificate for %s (it could take a while)",
- host);
+ log_info("Generating new %s key for %s (it could take a while)",
+ eckey ? "EC" : "RSA", host);
if ((f = fopen(keypath, "w")) == NULL) {
log_warn("can't open %s", keypath);
@@ -292,8 +292,7 @@ gencert(const char *hostname, const char *certpath, const char *keypath,
X509_free(x509);
EVP_PKEY_free(pkey);
- log_info("%s certificate successfully generated",
- eckey ? "EC" : "RSA");
+ log_info("Certificate for %s successfully generated", host);
return;
err: