View Full Version : Sharing SSL Certificate
Nology 03-28-2003, 09:18 AM I recently installed a Thawte SSL Certificate on my RaQ 550. I now wish to have it set so my other clients can share the certificate as well at something like: https://www.mydomain.com/www.mycustomerdomain.com
I've read other posts here about how to possibly do this, but I can't seem to make any sense of it. :eek:
Can anyone please give me some simple instructions as to how this can easily be done?
Thanks in advance.
Nology 03-29-2003, 07:03 PM Can anyone please help with this one???
Nology 04-01-2003, 11:22 PM PLEASE --- Can anybody help me with this?
If not, is someone interested in doing it for me for a rate?
irlhost 04-02-2003, 08:54 PM Try this
https://www.maindomain.com/~accountname/
Nology 04-02-2003, 09:04 PM Thanks, doesn't work. I'm not sure it's that easy.
ddent 04-02-2003, 09:12 PM I personally would recommend NOT doing it that way. Your better off getting a wildcard SSL certificate and doing customerdomain.yourdomain.com. Why? It makes it less likely that you will have problems with users stealing other users' cookies.
Nology 04-02-2003, 09:27 PM I wasn't aware that you could get wildcard SSL's, however given that I have already purchased one for my main domain, how can I get it to share?
ddent 04-02-2003, 09:39 PM I'd recommend looking at mod_rewrite. Maybe you can get a refund for the initial certificate and get a wildcard certificate instead.
latebowl 04-03-2003, 06:32 PM 2 ways:
like was already mentioned, give the user an account on your main website that you bought the cert for and give them 10 meg or so. Then they can use the url: https://www.maindomain.com/~accountname/ for secure areas.
or create an alias called secure, exaclty the same way you setup a newsite alias for viewing sites before DNS propagation, and then customers can access their site either by http://www.customersite.com or https://www.maindomain.com/secure/www.customersite.com
Unfortunately both these methods have several pros and cons
Nology 04-03-2003, 07:22 PM Thank you latebowl, I'll give the 2nd option a go.
latebowl 04-03-2003, 10:29 PM no worries mate :)
the pros and cons I refer to are more regarding using these methods with shopping carts/cookies etc. It's tricky but can be done. There are also bandwidth and stats concerns.
In the end, if the client is using the cert for the purpose of making money, I'd suggest to them to purchase their own cert (they're not that much $) and give them an IP.
Cheers.
ddent 04-04-2003, 03:28 AM *nod* You can get certificates for $49 these days. Once people start getting into doing a fair bit of traffic they'll probably prefer the look of keeping it on their own domain. For small sites though I am sure there is value to a shared certificate.
Nology 04-04-2003, 04:25 AM I have attempted this by adding the following:
AliasMatch ^/secure/([^/]+)(/(.*))? /home/sites/$1/web/$3
to /etc/httpd/conf/httpd.conf
I added it near the bottom, just above:
Include /etc/httpd/conf/vhosts/site1
I'm not sure if this is the correct place or not, however it doesn't work. When I go to https://www.maindomain.com/secure/www.customersite.com all I get is a 403 Forbidden error.
Any ideas??? - By the way I have a RaQ 550
latebowl 04-04-2003, 05:40 PM AliasMatch ^/secure/([^/]+)(/(.*))? /home/sites/$1/web/$3
goes in /etc/httpd/conf/httpd.conf
I have it under the newsite alias line, in the virtual host entry for your main domain with the cert, in between the virtual host tags.
then restart Apache and it should work.
If you have a newsite alias like I mentioned earlier it should work, however I have only done this on RaQ4's.
Nology 04-04-2003, 08:27 PM I have placed AliasMatch ^/secure/([^/]+)(/(.*))? /home/sites/$1/web/$3 in /etc/httpd/conf/httpd.conf and restarted Apache.
Looks like it is different on the RaQ 550's. All my <VirtualHost> tags are '# out'. Just below that my vsites are listed:
Include /etc/httpd/conf/vhosts/site1
Include /etc/httpd/conf/vhosts/site2
etc....
I placed AliasMatch ^/secure/([^/]+)(/(.*))? /home/sites/$1/web/$3 just above this.
latebowl 04-04-2003, 10:51 PM the alias entry will need to go in the virtual host tags for the site you have the cert for.
if that site is site1, then it looks like the alias entry could go in /etc/httpd/conf/vhosts/site1
Nology 04-05-2003, 02:22 AM Is it just me... this is driving me mental!
OK, well I did a pico at /etc/httpd/conf/vhosts/site1 in between the <virtual host tags> adding the AliasMatch entry, restarted Apache, but it still won't work.
Am I missing something here? - Do I need to do anything else?
latebowl 04-05-2003, 06:45 AM Hi Adam,
I assume site1 is the site you have the cert for?
Do you have the newsite alias, and if so does it work?
I'm unfamilair with the 550, are virtual sites webpages stored in /home/sites/sitex/web/ the same path as a Raq4?
Nology 04-05-2003, 06:56 AM Yep, site1 is the one with the cert.
Not sure what you mean by... do you have the newsite alias?
On the 550 as an e.g. the sites are stored in /home/.sites/75/site8/web
Nology 04-05-2003, 10:04 PM Has anyone successfully done this on a 550?
latebowl 04-06-2003, 12:46 AM If the 550 stores sites like /home/.sites/75/site8/web and /home/.sites/75/site9/web
then the alias line would need to be changed from
AliasMatch ^/secure/([^/]+)(/(.*))? /home/sites/$1/web/$3
to
AliasMatch ^/secure/([^/]+)(/(.*))? /home/.sites/75/$1/web/$3
(I think)
This explains the 403 errors when you first tried it.
Also, why I asked about the newsite alias is because if that worked, then so should the secure alias,
but I wasn't aware of the different paths on 550's, so that newsite alias referred to won't work.
Nology 04-06-2003, 09:54 AM Tried it that way as well... still no luck.
Thanks for all your help latebowl.
WreckRman2 04-14-2003, 02:23 PM I just create a softlink in my SSL site that points to the web folder of the other site. Simple as that...
|