summary refs log tree commit diff
path: root/bounce.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-06 16:13:08 -0500
committerJune McEnroe <june@causal.agency>2019-11-06 16:13:08 -0500
commitf3b13a3f1fde68181db1952781962d01ebda40cd (patch)
treed86155322443781ee3ed2bc9c6c5335868b51d74 /bounce.c
parentChange license to GPLv3 (diff)
downloadpounce-f3b13a3f1fde68181db1952781962d01ebda40cd.tar.gz
pounce-f3b13a3f1fde68181db1952781962d01ebda40cd.zip
Define one CERTBOT_PATH rather than two format strings
Diffstat (limited to '')
-rw-r--r--bounce.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/bounce.c b/bounce.c
index a381db3..93afbb4 100644
--- a/bounce.c
+++ b/bounce.c
@@ -303,10 +303,16 @@ int main(int argc, char *argv[]) {
 		}
 	}
 	if (!certPath[0]) {
-		snprintf(certPath, sizeof(certPath), DEFAULT_CERT_PATH, bindHost);
+		snprintf(
+			certPath, sizeof(certPath), CERTBOT_PATH "/live/%s/fullchain.pem",
+			bindHost
+		);
 	}
 	if (!privPath[0]) {
-		snprintf(privPath, sizeof(privPath), DEFAULT_PRIV_PATH, bindHost);
+		snprintf(
+			privPath, sizeof(privPath), CERTBOT_PATH "/live/%s/privkey.pem",
+			bindHost
+		);
 	}
 
 	if (!host) errx(EX_USAGE, "host required");