diff --git a/web/Modules/LetsEncrypt/Console/Commands/LetsencryptHttpAuthenticatorHook.php b/web/Modules/LetsEncrypt/Console/Commands/LetsencryptHttpAuthenticatorHook.php new file mode 100644 index 0000000..272be37 --- /dev/null +++ b/web/Modules/LetsEncrypt/Console/Commands/LetsencryptHttpAuthenticatorHook.php @@ -0,0 +1,40 @@ +info('Letsencrypt Authenticator Hook'); + + $certbotToken = $this->option('certbot-token'); + $certbotValidation = $this->option('certbot-validation'); + $certbotDomain = $this->option('certbot-domain'); + + + // .well-known/acme-challenge + + } +} diff --git a/web/Modules/LetsEncrypt/shell/hooks/post/http-cleanup.sh b/web/Modules/LetsEncrypt/shell/hooks/post/http-cleanup.sh new file mode 100644 index 0000000..e69de29 diff --git a/web/Modules/LetsEncrypt/shell/hooks/pre/http-authenticator.sh b/web/Modules/LetsEncrypt/shell/hooks/pre/http-authenticator.sh new file mode 100644 index 0000000..559aba2 --- /dev/null +++ b/web/Modules/LetsEncrypt/shell/hooks/pre/http-authenticator.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +phyre-php /usr/local/phyre/web/artisan phyre:letsencrypt-http-authenticator-hook --certbot-domain $CERTBOT_DOMAIN --certbot-token $CERTBOT_TOKEN --certbot-validation $CERTBOT_VALIDATION