Creating a self-signed cert with one command
The following command will generate a new key and create a certificate all in one line suitable for use by Apache or any other SSL tool.
openssl req -new -newkey rsa:1024 -days 365 -nodes -x509 -keyout www.example.com.pem -out www.example.com.pem
You can then use the file above in apache with the following two lines
SSLEngine On
SSLCertificateFile www.example.com.pem
No comments:
Post a Comment