I'm using Docker to run multiple applications using containers and nginx as reverse proxy.
My domain is:
internobis.com and I also want the certificate to work with cms.internobis.com (and any subdomain).
I ran this command to create the certificate the first time:
docker-compose run --rm certbot certonly --webroot --webroot-path /var/www/certbot/ -d internobis.com
After I realized that the certificate didn't work with a subdomain, I ran this command:
docker-compose run --rm certbot certonly --manual --preferred-challenges=dns --email test@gmail.com --agree-tos --expand -d internobis.com,*.internobis.com
My web server is:
nginx:1.21.5-alpine
The operating system my web server runs on is:
Ubuntu 20.04 LTS
My hosting provider is:
Amazon AWS Lightsail
I can login to a root shell on my machine:
yes
I'm using a control panel to manage my site:
no
The version of my client is (certbot --version
):
certbot 1.22.0
The certificate is working good and no problem with the generation of it.
My problem now is trying to test if the renew process is successful using "--dry-run".
I ran this command to renew:
docker-compose run --rm certbot renew --dry-run
Output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/internobis.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Failed to renew certificate internobis.com with error: The manual plugin is not working; there may be problems with your existing configuration.
The error was: PluginError('An authentication script must be provided with --manual-auth-hook when using the manual plugin non-interactively.')
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All simulated renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/internobis.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 renew failure(s), 0 parse failure(s)
I have also tried using this command:
docker-compose run --rm certbot renew --preferred-challenges=dns --webroot --webroot-path /var/www/certbot/ --dry-run
Output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/internobis.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Simulating renewal of an existing certificate for internobis.com and *.internobis.com
Failed to renew certificate internobis.com with error: None of the preferred challenges are supported by the selected plugin
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All simulated renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/internobis.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 renew failure(s), 0 parse failure(s)
My goal is to be able to renew my certificate for my domain and all its subdomains successfully.