selfsigned certificate


openssl genrsa -des3 -out server.key 1024

openssl req -new -key server.key -out server.csr

cp server.key
openssl rsa -in -out server.key

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

When Apache with mod_ssl is installed, it creates several directories in the Apache config directory. The location of this directory will differ depending on how Apache was compiled.

cp server.crt /usr/local/apache/conf/ssl.crt
cp server.key /usr/local/apache/conf/ssl.key

SSLEngine on
SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key


Leave a reply

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