Monday, July 20, 2015

How to create Self Signed Cert and configure in Apache:

How to create Self Signed Cert and configure in Apache:

1. Run the following command, to create server.key and server.crt files
    $ openssl req -new -x509 -nodes -out server.crt -keyout server.key
2. Enable httpd-ssl.conf in httpd.conf (Include conf/extra/httpd-ssl.conf) and turn on SSLEngine on in ssl.conf
3. Update httpd-ssl.conf with below details:

  • Include listen port
  • Include server cert and private key in the directives associated for them
  • Copy SSLCertificateKeyFile "/localapps/app/Apache_SPD/conf/server.key"
  • Copy SSLCertificateFile "/localapps/app/Apache_SPD/conf/server.crt"
  • Enable SSLEngine on

No comments:

Post a Comment