HostOnNet Blog

Generate Self Signed SSL

Looking for Linux Server Admin or WordPress Expert? We can help.

To create self signed SSL certificate run

openssl req -newkey rsa:2048 -nodes -keyout ssl.key -x509 -days 365 -out ssl.crt

It will ask some questions, answer them, most of these questions are not important, other than the one it ask for domain name.

OpenSSL Self Signed SSL Certificate

View SSL Cert Details

You can find info about the generated SSL Certificate with command

openssl x509 -text -noout -in ssl.crt

SSL Certificate info with OpenSSL

Related Posts

Posted in Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.