Centos create self-signed ssl certificate

How to create a self-signed SSL certificate on CentOS/Redhat

yum -y -q install mod_ssl openssl
cd /etc/pki/tls/certs
openssl req -new -newkey rsa:2048 -days 1460 -nodes -x509 -keyout server.key -out server.crt

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.