first, you need to set these parameters in apache configuration file:
Listen 443
NameVirtualHost *:443
Then, you need to link up to your
SSL key SSLCertificateFile /tmp_path/SSL.crt
SSLCertificateKeyFile /tmp_path/SSL.key
Finally setup the virtualhost,
<VirtualHost *:443>
ServerName SUB.YOURDOMAIN.com
DocumentRoot “/YOUR_ROOT_DIR/”
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
LogLevel warn
SSLEngine on
SSLProtocol -all +SSLv3 +TLSv1 SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXP <Files ~ “\.(cgi|shtml|phtml|php3?)$”>
SSLOptions +StdEnvVars </Files> SetEnvIf User-Agent “.*MSIE.*” \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0
CustomLog logs/ssl_request_log \ “%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \”%r\” %b” </VirtualHost>
restart your apache, fill in your password and SSL for wildcard domain is working now!