httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Agnello George" <agnello.dso...@gmail.com>
Subject [users@httpd] mod_ssl: creating self signed certificate on apache for multiple domains
Date Thu, 12 Jun 2008 11:54:53 GMT
Hi

I am trying to implement ssl on my Apache server for multiple domains  . I
have created  a self -signed certificate using the following command .

( For domain agnello.com )
 openssl req -new -x509 -days 30 -keyout
/usr/local/apache2/conf/domains_ssl/agnello.com/server.key  -out
/usr/local/apache2/conf/domains_ssl/agnello.com/server.crt -subj '/CN=
agnello.sys.qualiproj.com'

( for domain dsouza.com )
openssl req -new -x509 -days 30 -keyout
/usr/local/apache2/conf/domains_ssl/dsouza.com/server.key  -out
/usr/local/apache2/conf/domains_ssl/dsouza.com/server.crt -subj '/CN=
dsouza.sys.qualiproj.com'


It creates :

server.key and server .crt in the following location (
/usr/local/apache2/conf/domains_ssl/agnello.com/ ) ---- > agnello.com

 server.key and server .crt in the following location (
/usr/local/apache2/conf/domains_ssl/dsouza.com/ ) ---- > dsouza.com

in the http-vhost.conf file i have added the certificate and the key

vi  /usr/local/apache2/conf/extra/httpd-vhosts.conf

NameVirtualHost 192.168.0.244:80

NameVirtualHost 192.168.0.244:443
<VirtualHost 192.168.0.244:443>
ServerAdmin admin@agnello.sys.qualiproj.com
ServerName agnello.sys.qualiproj..com
ServerAlias www.agnello.sys.qualiproj.com
DocumentRoot /websites/agnello.com/web
SSLEngine on
SSLCertificateKeyFile /usr/local/apache2/conf/domains_ssl/
agnello.com/server.key
SSLCertificateFile /usr/local/apache2/conf/domains_ssl/
agnello.com/server.crt
ErrorLog /websites/agnello.com/logs/agnello.sys.qualiproj.error_log
CustomLog /websites/agnello.com/logs/agnello.sys.qualiproj.access_log common
</VirtualHost>
<VirtualHost 192.168.0.244:443>
ServerAdmin nokia*admin@nokia.sys.qualiproj.com*<admin@agnello.sys.qualiproj.com>
ServerName nokia.sys.qualiproj.com
ServerAlias *www.nokia.sys.qualiproj.com*<http://www.agnello.sys.qualiproj.com/>
DocumentRoot /websites/nokia.com/web
SSLEngine on
SSLCertificateKeyFile /usr/local/apache2/conf/domains_ssl/
nokia.com/server.key
SSLCertificateFile /usr/local/apache2/conf/domains_ssl/nokia.com/server.crt
ErrorLog /websites/nokia.com/logs/nokia.sys.qualiproj.error_log
CustomLog /websites/nokia.com/logs/nokia.sys.qualiproj.access_log common
</VirtualHost>

when i restart Apache its ask me of a password phrase  ( which password do i
input here ??? )


Is this the way to go about creating ssl certificates fro multiple domains,
or is there any other alternate way ??


Awaiting your feed back !!

Thanks


-- 
Regards
Agnello Dsouza
www.linux-vashi.blogspot.com

Mime
View raw message