Skip to content

Instantly share code, notes, and snippets.

@earlgreyxxx
Last active January 27, 2023 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save earlgreyxxx/1aec696131d7ca2429f68aca38d4b5e7 to your computer and use it in GitHub Desktop.
Save earlgreyxxx/1aec696131d7ca2429f68aca38d4b5e7 to your computer and use it in GitHub Desktop.
@ECHO off
REM certbot wrapper
REM renew-sslcert [test]
REM testを指定すると、--dry-run (シミュレーション)を付けて実行します。
SETLOCAL
if "%~1"=="test" (
SET DRYRUN=--dry-run
) else (
SET DRYRUN=
)
certbot renew --manual --key-type rsa --manual-auth-hook certbot-preauth.cmd --manual-cleanup-hook certbot-postauth.cmd %DRYRUN%
ENDLOCAL
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment