httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: [users@httpd] mod_ssl: creating self signed certificate on apache for multiple domains
Date Thu, 12 Jun 2008 12:53:44 GMT
Hi.

Try re-creating your keys, but this time without entering a passkey.
Otherwise you'll have to enter it each time you start Apache.

Agnello George wrote:
> 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
> 
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message