Created an SSL certificate and CA self-signed.
Virtual Hosts are not working in ssl.conf with and without the
NameVirtualHost *:443
Virtual Hosts work correctly with and without the
NameVirtualHost *:80
The main ServerName is left at localhost:80.
For a valid www.domain.com, it would be nice to have entries for some subdomains enabled for SSL as example entries in the SSL.CONF file.
Created Private Key:
- Code: Select all
openssl genrsa -out ca.key -rand $randomness_source 1024
Self-signed the root certificate:
- Code: Select all
openssl req -new -x509 -days 3650 -config ca.conf -key ca.key -out ca.crt
Placed the key and crt in the appropriate cert folders in apache/conf.
Tried using the makecert.bat file also.
Any sample httpd.comf and ssl.conf files that address this problem?