Self signed cert for multiple websites

Keith Smith techlists at phpcoderusa.com
Sat Jul 4 06:04:30 MST 2015


Hi,

I've configured a VM using VirtualBox and it is running CentOS 6.6.

To create the self signed cert I followed 3 steps:

1) mkdir /etc/httpd/ssl

2) cd /etc/httpd/ssl

3) openssl req -x509 -nodes -days 4000 -newkey rsa:2048 -keyout 
/etc/httpd/ssl/name-of-my-test-site.key -out 
/etc/httpd/ssl/name-of-my-test-site.crt

I've tested the cert and it works.

Now I want to add more test sites to my VM.

I've done some research and am not finding any information about how to 
configure the self signed cert(s) for multiple sites.  From reading the 
docs it appears that I create one cert for the box and it will be used 
by all the sites on my box (test/dev VM).  Is this true or do I need to 
create a cert specific for each virtual host?  If I need to create a 
cert for each virtual host, how do I do so?

Thank you so much for all your help!!

-- 
Keith Smith


More information about the PLUG-discuss mailing list