Posted by:
MCaetano
(---.dialup.adsl.anteldata.net.uy)
Hi,
I have a wamp Apache 2.2.21 running on a Win XP Pro SP3 x86
I had everything running smoothly but now I need to install a SSL certificate in my site.
I have already created the server.key file, and followed every kind of gude to obtain and install my certificate and configure http.conf and hhtpd-ssl.conf
httpd.conf should be ok since the only change I made was including the httpd-ssl.conf.
When doing this my wamp service won't start anymore, so I guess it should be an httpd-ssl.conf related issue.
After many ups and downs with the httpd-ssl.conf I stumbled upon two very useful httpd commands, -S and -t wich should check the syntax of *.conf
According to both commands my httpd-ssl.conf has a correct syntax, nontheless wamp service refuses to start.
This is what my httpd-ssl.conf looks like:
Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:c:/wamp/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
SSLMutex default
NameVirtualHost *:443
<VirtualHost *:443>
# General setup for the virtual host
DocumentRoot "C:/wamp/www"
ServerName localhost:443
ServerAdmin
admin@example.comErrorLog C:/wamp/bin/apache/Apache2.2.21/logs/sslerror_log
TransferLog C:/wamp/bin/apache/Apache2.2.21/logs/sslaccess_log
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile "C:/wamp/bin/apache/Apache2.2.21/ssl.crt/mydomain.com.crt"
SSLCertificateKeyFile "C:/wamp/bin/apache/Apache2.2.21/ssl.key/server.key"
SSLCertificateChainFile "C:/wamp/bin/apache/Apache2.2.21/ssl.crt/gd_bundle.crt"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "C:/wamp/www">
SSLOptions +StdEnvVars
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog "C:/wamp/bin/apache/Apache2.2.21\logs/ssl_request_log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
Just in case, I've tripled checked every path so those are ok.
I've also checked openssl php extension and mod_ssl for apache so those are not missing, and made sure ssl port (443) was listening and firewall free.
If anyone has any clue or comment on where I might be wrong please shed some light since I'm out of ideas at the moment.
Thanks for your help and time.
Cheers
MartÃn Caetano