aboutsummaryrefslogtreecommitdiff
path: root/ge.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-08-29 09:24:14 +0000
committerOmar Polo <op@omarpolo.com>2023-08-29 09:24:14 +0000
commitf31289a8acc233e8a92029dcfca0eb07ac11e39b (patch)
treed6cf4c0e3baeb391a29210da7516f9837188ad5d /ge.c
parentb894573ad9c5173af9f4a9403d54ad67e4ba0bcf (diff)
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.)
Diffstat (limited to 'ge.c')
-rw-r--r--ge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ge.c b/ge.c
index 75d81b2..36fefea 100644
--- a/ge.c
+++ b/ge.c
@@ -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)