So I was trying to add SSL to my site using this link https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04
But I messed up a few things as my SSL was successful but my site was showing an Nginx page rather than my site so I deleted and removed Nginx and Certbot. Now I am unable to install Nginx again due to “Server certificate verification failed”. Can someone one of you help me to resolve this issue?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
That’s quite weird. When you try and run:
- yum install nginx
or
- apt install nginx
You see the above error “Server certificate verification failed”, is that correct?
Additionally, what I’ll recommend is to only rework the nginx .conf of your app located in /etc/nginx/sites-enabled/nameof.conf
As for Certbot, if you’ve selected the option to do the redirect for you, you’ll be able to see a file called /etc/nginx/sites-enabled/nameof-ssl.conf. You can remove that one as well, you’ll be able to recreate it from Certbot afterwards.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.