Hi,
My company has a website with alot of content. We created a new website and put the old website as old.zabazdomain.com and set a 301 redirection in htaccess files so every url in old.zabazdomain.com will go to zabazdomain.com automatically. Now the problem is ssl certificate expired for this old website and due to the redirection, I can’t access the old wordpress based website to install the new certificate.I tried it through ssh and got the below listed result. Kindly help
My domain is: Sorry but I have to mention it as zabazdomain due to authorization problems
I ran this command: sudo certbot --nginx certonly
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Which names would you like to activate HTTPS for?
1: zabazdomain.com
2: old.zabazdomain.com
3: www.zabazdomain.com
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter ‘c’ to cancel): 2
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/old.zabazdomain.com.conf)
What would you like to do?
1: Keep the existing certificate for now
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
Performing the following challenges:
http-01 challenge for old.zabazdomain.com
nginx: [warn] conflicting server name “zabazdomain.com” on 10.0.0.4:443, ignored
nginx: [warn] conflicting server name “www.zabazdomain.com” on 10.0.0.4:443, ignored
nginx: [warn] conflicting server name “zabazdomain.com” on 10.0.0.4:443, ignored
nginx: [warn] conflicting server name “www.zabazdomain.com” on 10.0.0.4:443, ignored
Waiting for verification…
Cleaning up challenges
nginx: [warn] conflicting server name “zabazdomain.com” on 10.0.0.4:443, ignored
nginx: [warn] conflicting server name “www.zabazdomain.com” on 10.0.0.4:443, ignored
nginx: [warn] conflicting server name “zabazdomain.com” on 10.0.0.4:443, ignored
nginx: [warn] conflicting server name “www.zabazdomain.com” on 10.0.0.4:443, ignored
IMPORTANT NOTES:
-
Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/old.zabazdomain.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/old.zabazdomain.com/privkey.pem
Your cert will expire on 2019-06-17. To obtain a new or tweaked
version of this certificate in the future, simply run certbot
again. To non-interactively renew all of your certificates, run
“certbot renew” -
If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let’s Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
My web server is (include version): nginx/1.13.3
The operating system my web server runs on is (include version): Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-134-generic x86_64)
My hosting provider, if applicable, is: In a VM inside Azure
I can login to a root shell on my machine (yes or no, or I don’t know): Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot): certbot 0.26.1