aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--acme.conf.5.in7
-rw-r--r--renew.sh.in8
2 files changed, 12 insertions, 3 deletions
diff --git a/acme.conf.5.in b/acme.conf.5.in
index a13f6ff..6d342e7 100644
--- a/acme.conf.5.in
+++ b/acme.conf.5.in
@@ -39,6 +39,13 @@ The path to a directory containing hooks to invoke when issuing certificates
.Xr domains.conf 5 ) .
The default path is
.Pa __CONFDIR__/hooks .
+.It Va ACME_OPENSSL
+Path to the
+.Xr openssl 1
+program.
+If not specified,
+.Ev $PATH
+will be searched.
.It Va ACME_UACME
Path to the
.Xr uacme 1
diff --git a/renew.sh.in b/renew.sh.in
index cecf52a..e1d2c6c 100644
--- a/renew.sh.in
+++ b/renew.sh.in
@@ -1,6 +1,8 @@
#! /bin/sh
# This source code is released into the public domain.
+_OPENSSL="$(_findbin openssl $ACME_OPENSSL)"
+
# Parse command-line arguments.
args=$(getopt f $*)
if [ $? -ne 0 ]; then
@@ -44,8 +46,8 @@ _make_key() {
umask 077
case $keytype in
- ec) openssl ecparam -name secp384r1 -genkey -noout -out "$keyfile";;
- rsa) openssl genrsa -out "$keyfile" 3072;;
+ ec) $_OPENSSL ecparam -name secp384r1 -genkey -noout -out "$keyfile";;
+ rsa) $_OPENSSL genrsa -out "$keyfile" 3072;;
*) _error "%s: unknown key type %s?" "$keyfile" "$keytype"
return 1;;
esac
@@ -87,7 +89,7 @@ EOF
done
# Generate the CSR
- openssl req -new -key "$keyfile" -out "$csrfile" -config "$csrconf"
+ $_OPENSSL req -new -key "$keyfile" -out "$csrfile" -config "$csrconf"
return $?
}