Add acme remove revoke

This commit is contained in:
2025-05-02 21:25:06 +02:00
parent 0169227af6
commit 41ab9a263d
3 changed files with 13 additions and 4 deletions

View File

@@ -1,4 +1,3 @@
#!/bin/bash #!/bin/bash
. ./env.sh . ./env.sh

10
acme/acme_remove.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
set -e
. ./env.sh
curl https://get.acme.sh | sh -s email=$EMAIL
$HOME/.acme.sh/acme.sh --revoke --domain $DOMAIN
$HOME/.acme.sh/acme.sh --remove --domain vw.jamesvillage.dev
rm -r $SSL_PATH
rm -r $HOME/.acme.sh/"$DOMAIN"_ecc

View File

@@ -2,6 +2,6 @@ export NAMECHEAP_USERNAME=""
export NAMECHEAP_API_KEY="" export NAMECHEAP_API_KEY=""
export NAMECHEAP_SOURCEIP="" export NAMECHEAP_SOURCEIP=""
export EMAIL="" EMAIL="liu.tianyu93@hotmail.com"
export DOMAIN="" DOMAIN="vw.jamesvillage.dev"
export SSL_PATH=$HOME/.config/ssl/$DOMAIN SSL_PATH=$HOME/.config/ssl/$DOMAIN