<div dir="ltr"><div class="gmail_default" style=""><font face="trebuchet ms, sans-serif"><a href="https://blog.celogeek.com/201209/209/how-to-create-a-self-signed-wildcard-certificate/">https://blog.celogeek.com/201209/209/how-to-create-a-self-signed-wildcard-certificate/</a></font><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 4, 2015 at 8:39 AM, Keith Smith <span dir="ltr"><<a href="mailto:techlists@phpcoderusa.com" target="_blank">techlists@phpcoderusa.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2015-07-04 07:53, Stephen Partington wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As long as the "domain" remains the same the same cert should work.<br>
Once that changes you will need a new cert.<br>
<br>
</blockquote>
<br>
<br></span>
I will be creating multiple test sites. Each with a unique domain such as mytestsite.local and anothertestsite.local, each having it's own virtual host and docroot.<br>
<br>
How do I create a unique cert for each domain?<br>
<br>
<br>
<br>
There is a number of questions that are asked during the cert creation.<br>
<br>
Country Name (2 letter code) [GB]:<br>
State or Province Name (full name) [Berkshire]:<br>
Locality Name (eg, city) [Newbury]:<br>
Organization Name (eg, company) [My Company Ltd]:<br>
Organizational Unit Name (eg, section) []:<br>
Common Name (eg, your name or your server's hostname) []:<br>
Email Address []:<br>
An optional company name []:<br>
<br>
I assume what makes each cert unique is the answer to "Common Name (eg, your name or your server's hostname)". I enter the domain name not the FQDN or hostname of the server.<br>
<br>
Or maybe each cert is unique and by associating it with the domain and adding the excretion to the browser is all that is needed?????<br>
<br>
I am rather new to creating self signed certs and the above is an assumption.<br>
<br>
Any guidance is much appreciated.<br>
<br>
Keith<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On Sat, Jul 4, 2015 at 6:04 AM, Keith Smith<br>
<<a href="mailto:techlists@phpcoderusa.com" target="_blank">techlists@phpcoderusa.com</a>> wrote:<br>
<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hi,<br>
<br>
I've configured a VM using VirtualBox and it is running CentOS 6.6.<br>
<br>
To create the self signed cert I followed 3 steps:<br>
<br>
1) mkdir /etc/httpd/ssl<br>
<br>
2) cd /etc/httpd/ssl<br>
<br>
3) openssl req -x509 -nodes -days 4000 -newkey rsa:2048 -keyout<br>
/etc/httpd/ssl/name-of-my-test-site.key -out<br>
/etc/httpd/ssl/name-of-my-test-site.crt<br>
<br>
I've tested the cert and it works.<br>
<br>
Now I want to add more test sites to my VM.<br>
<br>
I've done some research and am not finding any information about<br>
how to configure the self signed cert(s) for multiple sites. From<br>
reading the docs it appears that I create one cert for the box and<br>
it will be used by all the sites on my box (test/dev VM). Is this<br>
true or do I need to create a cert specific for each virtual host? <br>
If I need to create a cert for each virtual host, how do I do so?<br>
<br>
Thank you so much for all your help!!<br>
<br>
--<br>
Keith Smith<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
</span><a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [1]<br>
</blockquote><span class="">
<br>
--<br>
<br>
A mouse trap, placed on top of your alarm clock, will prevent you from<br>
rolling over and going back to sleep after you hit the snooze button.<br>
<br>
Stephen<br>
<br>
<br>
<br></span>
Links:<br>
------<br>
[1] <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><span class=""><br>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</span></blockquote><div class="HOEnZb"><div class="h5">
<br>
-- <br>
Keith Smith<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">A mouse trap, placed on top of your alarm clock, will prevent you from rolling over and going back to sleep after you hit the snooze button.<br><br>Stephen<br><br></div>
</div>