Skip to content

Instantly share code, notes, and snippets.

@IchHabRecht
Last active December 21, 2015 11:38
Show Gist options
  • Save IchHabRecht/6299775 to your computer and use it in GitHub Desktop.
Save IchHabRecht/6299775 to your computer and use it in GitHub Desktop.
[APACHE] SSL certificate under Windows 7
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
<IfModule ssl_module>
Include conf/extra/httpd-ssl.conf
</IfModule>
NameVirtualHost *:443
>> Copy XXX.key and XXX.cert to conf/ssl
>> More information http://www.neilstuff.com/apache/apache2-ssl-windows.htm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment