November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

INSTALL SSL Wildcard Certificate MULTIPLE SUBDOMAINS

INSTALL SSL Wildcard Certificate MULTIPLE SUBDOMAINS

Some sub-rmohans share the master rmohan’s SSL Wildcard Certificate,

like as a.rmohan.com and b.rmohan.com share a SSL Wildcard Certificate of *.rmohan.com.

1. put the certificate to the propel place
2. configure apache
a. enable name base virtual host

NameVirtualHost *:443

b. make sure listen 443 port

Listen 443

c. make sure load mod_ssl.so

LoadModule ssl_module modules/mod_ssl.so

SSLRandomSeed startup /dev/urandom 256
SSLRandomSeed connect builtin

SSLPassPhraseDialog builtin
SSLSessionCache shmcb:/var/cache/mod_ssl/ssl_scache(512000)
SSLSessionCacheTimeout 300
SSLMutex default


d. configure a wildcard rmohan

DocumentRoot /data/webapps/rmohan/web
ServerName www.rmohan.com
ServerAlias rmohan.com
DirectoryIndex index.html index.php

SSLEngine on
SSLProtocol all -SSLv2
#SSLStrictSNIVHostCheck off
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP

SSLCertificateFile “/etc/mohan/rmohan.com.crt”
SSLCertificateKeyFile “/etc/mohan/server.key”
SSLCertificateChainFile “/etc/mohan/gd_bundle.crt”

AllowOverride All
Order allow,deny
Allow from all


e. configure sub rmohan virtualhost

DocumentRoot /data/webapps/rmohan/web
ServerName a.rmohan.com
DirectoryIndex index.html index.php

SSLEngine on
SSLProtocol all -SSLv2
#SSLStrictSNIVHostCheck off
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP

SSLCertificateFile “/etc/mohan/rmohan.com.crt”
SSLCertificateKeyFile “/etc/mohan/server.key”
SSLCertificateChainFile “/etc/mohan/gd_bundle.crt”

AllowOverride All
Order allow,deny
Allow from all

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>