tweak certificate generation log messages

This commit is contained in:
Omar Polo 2023-10-18 18:07:28 +00:00
parent bab32701fb
commit 07d86a0beb
1 changed files with 3 additions and 4 deletions

View File

@ -218,8 +218,8 @@ gencert(const char *hostname, const char *certpath, const char *keypath,
FILE *f; FILE *f;
const unsigned char *host = (const unsigned char*)hostname; const unsigned char *host = (const unsigned char*)hostname;
log_info("generating new certificate for %s (it could take a while)", log_info("Generating new %s key for %s (it could take a while)",
host); eckey ? "EC" : "RSA", host);
if ((f = fopen(keypath, "w")) == NULL) { if ((f = fopen(keypath, "w")) == NULL) {
log_warn("can't open %s", keypath); log_warn("can't open %s", keypath);
@ -292,8 +292,7 @@ gencert(const char *hostname, const char *certpath, const char *keypath,
X509_free(x509); X509_free(x509);
EVP_PKEY_free(pkey); EVP_PKEY_free(pkey);
log_info("%s certificate successfully generated", log_info("Certificate for %s successfully generated", host);
eckey ? "EC" : "RSA");
return; return;
err: err: