Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:www.mominoun.com
I ran this command: ```
/opt/letsencrypt/letsencrypt-auto --authenticator standalone --installer apache -d www.mominoun.com --pre-hook âservice apache2 stopâ --post-hook âservice apache2 startâ --renew-by-default
It produced this output: Failed redirect for www.mominoun.com
Unable to set enhancement redirect for www.mominoun.com
Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection
IMPORTANT NOTES:
- We were unable to set up enhancement redirect for your server,
however, we successfully installed your certificate.
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/www.mominoun.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/www.mominoun.com/privkey.pem
Your cert will expire on 2019-09-02. To obtain a new or tweaked
version of this certificate in the future, simply run
letsencrypt-auto again with the "certonly" option. To
non-interactively renew *all* of your certificates, run
My web server is (include version): apache2
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of `certbot --version` or `certbot-auto --version` if you're using Certbot):
But: Your certificate has only the www domain name:
CN=www.mominoun.com
04.06.2019
02.09.2019
expires in 90 days www.mominoun.com - 1 entry
So you should create one certificate with both domain names - non-www and www.
And it should be possible that you use --apache as authenticator, not standalone. Then you don't need to stop your running webserver. And you can remove the pre- and the post-hook.
root@ip-172-31-45-103:~# /opt/letsencrypt/letsencrypt-auto --apache -d www.mominoun.com -d mominoun.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Cert not yet due for renewal
You have an existing certificate that has exactly the same domains or certificate name you requested and isnât close to expiry.
(ref: /etc/letsencrypt/renewal/mominoun.com.conf)
What would you like to do?
1: Attempt to reinstall this existing certificate
2: Renew & replace the cert (limit ~5 per 7 days)
Select the appropriate number [1-2] then [enter] (press âcâ to cancel): 2
Renewing an existing certificate
Deploying Certificate to VirtualHost /etc/apache2/sites-enabled/000-default-le-ssl.conf
Deploying Certificate to VirtualHost /etc/apache2/sites-enabled/000-default-le-ssl.conf
Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if youâre confident your site works on HTTPS. You can undo this
change by editing your web serverâs configuration.
Select the appropriate number [1-2] then [enter] (press âcâ to cancel): 2
Failed redirect for www.mominoun.com
Unable to set enhancement redirect for www.mominoun.com
Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection
IMPORTANT NOTES:
We were unable to set up enhancement redirect for your server,
however, we successfully installed your certificate.
Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/mominoun.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/mominoun.com/privkey.pem
Your cert will expire on 2019-09-02. To obtain a new or tweaked
version of this certificate in the future, simply run
letsencrypt-auto again with the âcertonlyâ option. To
non-interactively renew all of your certificates, run
âletsencrypt-auto renewâ
root@ip-172-31-45-103:~#
In this situation you need to audit your vhosts and ensure you donât have duplicates vhost entries like @JuergenAuer stated above. If you could post the entirety of your vhost configuration, that would be helpful.