Question

How to delete SSL certificate?

By using the below command, I’ve created an SSL certificate. As the common name, I’ve given the IP address of the server.

openssl req  -new  -newkey rsa:2048  -nodes  -keyout localhost.key  -out localhost.csr

And using the below, I’ve signed by myself.

openssl  x509  -req  -days 365  -in localhost.csr  -signkey 
localhost.key  -out localhost.crt

After all, I’ve realized that I’m unable to use an SSL certificate with just an IP address as a common name. This way, the browser does not trust my certificate because it’s signed by me. What I want to do is to revert this process. I’d like to keep using http as I’ve been doing before. How can I remove the SSL that I’ve created in this process?

OS: Ubuntu 18.04 LTS


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

After deciding that I don’t want the SSL certificate I’ve generated, I’ve deleted the certificate and it became invalid. Since I’ve had several approaches to create a certificate for the domain, there might be another reason why this is the case. Problem solved for now.