hasen's tech life

Twitter: @hasen

Let's EncryptのSSL認証更新でエラーがでたので対応した.

# Let's EncryptのSSL認証更新でエラーがでたので対応した.

$ sudo /usr/bin/certbot-auto renew --force-renew
> The error was: PluginError('An authentication script must be provided with --manual-auth-hook when using the manual plugin non-interactively.',). Skipping.

$ /usr/bin/certbot-auto certonly
> Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.
$ vi /etc/httpd/conf/httpd.conf
++ <virtualhost *:80>
++ ServerAdmin admin@example.com
++ DocumentRoot /PATH/TO/ROOT
++ ServerName example.com
++ </virtualHost>
$ /usr/bin/certbot-auto certonly