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

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.

Submit an Answer
1 answer

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.