cd "C:\Program Files (x86)\Apache2\bin" openssl req -config ../conf/openssl.cnf -new -out XXX.csr -keyout XXX.pem >> Fill in "PEM pass phrase" and "Common Name" openssl rsa -in XXX.pem -out XXX.key >> Delete the .rnd file openssl x509 -in XXX.csr -out XXX.cert -req -signkey XXX.key -days 365 LoadModule ssl_module modules/mod_ssl.so Include conf/extra/httpd-ssl.conf NameVirtualHost *:443 >> Copy XXX.key and XXX.cert to conf/ssl >> More information http://www.neilstuff.com/apache/apache2-ssl-windows.htm