This commit is contained in:
2026-01-24 05:01:42 +01:00
parent 5258bb012e
commit 3025f3c2d8
21 changed files with 108 additions and 10 deletions

7
cert/clientRenew Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash -e
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
T=$SDIR/../step
STEP=0
source $T/ensureRootUser
source $T/renewCertbot

3
cert/clientSetup Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash -e
# https://habr.com/ru/articles/735712/
brew install certbot

23
cert/vpsRenew Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash -e
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
T=$SDIR/../step
ACME_FILE=$1
ACME_VALUE=$2
if [ -z "$ACME_FILE" ] || [ -z "$ACME_VALUE" ]; then
echo "Usage: $0 ACME_FILE ACME_VALUE"
exit 1
fi
ACME_DIR="/var/www/html/.well-known/acme-challenge"
STEP=0
source $T/ensureRootUser
source $T/copyNginxACMEConfig
source $T/restartNginx
source $T/createACMEChallenge
source $T/waitForReturnKey
source $T/deleteACMEChallenge
source $T/copyNginxProdConfig
source $T/restartNginx