gemexp: change the naming scheme for the certificates

Using what the manpage advertised.  The regress adaptations will
follow.  The directory will also change (and the key type too.)
This commit is contained in:
Omar Polo 2023-08-29 09:24:14 +00:00
parent b894573ad9
commit f31289a8ac
1 changed files with 2 additions and 2 deletions

4
ge.c
View File

@ -104,9 +104,9 @@ load_local_cert(struct vhost *h, const char *hostname, const char *dir)
{
char *cert, *key;
if (asprintf(&cert, "%s/%s.cert.pem", dir, hostname) == -1)
if (asprintf(&cert, "%s/%s.pem", dir, hostname) == -1)
fatal("asprintf");
if (asprintf(&key, "%s/%s.key.pem", dir, hostname) == -1)
if (asprintf(&key, "%s/%s.key", dir, hostname) == -1)
fatal("asprintf");
if (access(cert, R_OK) == -1 || access(key, R_OK) == -1)