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=pirelclothing.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:pirelclothing.com
I ran this command: sudo certbot renew
It produced this output:
Cert is due for renewal, auto-renewing...
Could not choose appropriate plugin: 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.',)
Attempting to renew cert (pirelclothing.com) from /etc/letsencrypt/renewal/pirelclothing.com.conf produced an unexpected 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.',). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/pirelclothing.com/fullchain.pem (failure)
My web server is (include version): Nginx
The operating system my web server runs on is (include version): Ubuntu 18.4
My hosting provider, if applicable, is:
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.27.0
I tried redoing the process but get the same error.
I am not able to remove the existing cert to redo it fresh.
I am new to this and any help would be much appreciated.
You cannot use renew with manual authentication without specifying a script with --manual-auth-hook.
Based on your certificate history, it looks like you already have a certificate that won't expire until February 10 that was acquired through some flavor of cPanel, which likely supports AutoSSL and will automatically renew the certificate at the appropriate time. However, that certificate is not currently installed and thus not being served. Currently, an apex (pirelclothing.com) and wildcard (*.pirelclothing.com) certificate (A&W certificate) is currently installed and being served. I'm assuming it is that certificate you are trying to renew with certbot. You can do this, but I would highly recommend just installing the first certificate I mentioned (non-wildcard) and letting cPanel automatically renew it for you.
If you wish to proceed with manually acquiring/renewing the wildcard certificate, use:
Hey,
Thanks for your solution. It worked just fine.
is there a way to make the renewal automatic or do i have to manually do it every 90 days?
Appreciate your help.
To elaborate on other certificate history,
i have pointed just the main apex(pirelclothing.com) to AWS. Rest all is in my cpanel server to handle my mail exchange. Hence that cpanel certificate.
You probably don't want to cover "the rest" with your own certificate. Without installing your own certificate, you are probably redirected to a hosting instance of your cPanel provider that is already covered by their certificate. See webdisk.pirelclothing.com as an example.
You missed a couple:
cpanel.pirelclothing.com. 14399 IN CNAME pirelclothing.com.
webmail.pirelclothing.com. 14399 IN CNAME pirelclothing.com.
I'm assuming that you acquired and installed the wildcard certificate on your AWS instance. If you're only (supposed to be) serving the apex and www there, you don't need a wildcard certificate and could just use:
sudo certbot run --cert-name pirelclothing.com --nginx -d "pirelclothing.com,www.pirelclothing.com" --keep
That will also install the certificate for you and update your nginx configuration (which may cause duplication problems that should be easy to fix by removing your own redirects and ssl vHost). You want certbot to manage those things for you rather than doing them yourself. This will also fix your missing 301 redirect from http://pirelclothing.com to https://pirelclothing.com.
Once that succeeds, you can test your automatic renewals using:
Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA. You may need to use an authenticator plugin that can do challenges over DNS.
Sorry to bother you but could you help with this authenticator Plugin?
Did you run the command exactly as I posted it? The nginx authenticator (--nginx) cannot obtain wildcard (*.) certificates. If possible, please post a complete dump of the command and it's output so that we cab analyze further. I want to determine if there might be a bug in certbot. Your certbot version is quite ancient, so it may be a known issue and you might just need to update your certbot.
I believe this is a known issue with your version of certbot. Please use the link I provided above to the official certbot website and follow the procedure there to install the snap version of certbot then try the command I gave you again.
I am not able to login into my wordpress installation now. It gives me a 404 Error
and the apex domain goes to the nginx page.
Any idea where i went wrong?
You got a new certificate covering only pirelclothing.com and www.pirelclothing.com.
Your redirects look great now too.
http://www.pirelclothing.com
301 Moved Permanently
https://www.pirelclothing.com/
301 Moved Permanently
https://pirelclothing.com/
200 OK
http://pirelclothing.com
301 Moved Permanently
https://pirelclothing.com/
200 OK
I see that you've centered on the apex domain name (pirelclothing.com) rather than the www subdomain (www.pirelclothing.com) as your canonical domain name, which is a wise decision in my opinion.
I previously pointed out that http://pirelclothing.com was serving content from the default nginx instance. Your WordPress installation is still there. You're just not serving it because https://pirelclothing.com.