Wednesday, 7 November 2012

Create ssl certificate for site

If You allready have configured your apache server for ssl, type in these command lines for new cert for site

openssl req -new -days 365 -nodes -out`
openssl x509 -in -out -req -signkey -days 365

And add your configuration to thhpd-ssl.conf

<VirtualHost _default_:443> 
    DocumentRoot "YOUR_PRROJECT_PATH" 
    ServerName YOUR_PRROJECT_HOST:443 
    ServerAlias YOUR_PRROJECT_ALIAS:443 
    SSLEngine on

    SSLCertificateFile "C:/wamp/bin/apache/Apache2.2.21/conf/"

    SSLCertificateKeyFile "C:/wamp/bin/apache/Apache2.2.21/conf/" 

No comments:

Post a Comment