Re: mod_ssl: creating self signed certificate on apache for multiple domains

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx*<admin@xxxxxxxxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux