Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Oct 11, 2011 9:01 pm 
Offline
Newbie

Joined: Thu Sep 29, 2011 11:02 am
Posts: 3
Hello! I currently have two virtual hosts configured on my server. I need to create a HTTPS connection for both of the virtual hosts on my server, I have already created the certificate and the key using Comodo (www.comodo.com). My question is: To which file should I add the certificate, key and the .ca-bundle paths so the HTTPS connection starts working?

Thanks for your help!


Top
   
 Post subject:
PostPosted: Tue Oct 11, 2011 9:12 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
There are tons of generic tutorials for installing SSL certificates with Apache. Any of them should work.

But not all certificates are equal. For example, some cheap certificates require an intermediate certificate to be installed as well. So it is best to refer to your certificate vendor's instructions. Most vendors have instructions for Apache somewhere on their website. Links to those instructions can usually be found in the e-mails they send you.

Also, if you want to secure two different sites, you'll probably need to buy another IP address.


Top
   
 Post subject:
PostPosted: Sun Oct 30, 2011 9:04 am 
Offline

Joined: Thu Oct 27, 2011 8:13 am
Posts: 1
Location: Melbourne
Hi guys
I have similar issue,
I want to host few secure domains with a different base names (secure.laraclaire.com.au and secure pierinadesigns.com.au), can i do this using single IP ? and how?
We have two secure. certs for single domains

thanks


quote---------------------
I currently have two virtual hosts configured on my server. I need to create a HTTPS connection for both of the virtual hosts on my server, I have already created the certificate and the key using Comodo (www.comodo.com). My question is: To which file should I add the certificate, key and the .ca-bundle paths so the HTTPS connection starts working?


Top
   
 Post subject:
PostPosted: Sun Oct 30, 2011 11:31 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
You can, but it depends on Server Name Indication support by both the server and the client. Without SNI, there's a catch-22: "normal" HTTP host-based virtual servers depend on the Host: header to tell the server which site is requested. With HTTPS, the headers aren't sent until after the channel is created and secured, which relies on the presentation of the certificate. And, without the headers, it (as originally designed) has no way of knowing which certificate to present.

SNI fixes this, but isn't universally supported. IE on Windows XP is probably the most notable browser/OS on the no-support list, 'tho the default browser on Android 2.x is probably the most disappointing.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Sun Oct 30, 2011 6:19 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
It's also possible to run two SSL sites on the same IP if you run them on different ports. For example, you might run one site on port 443 (default) and the other on port 445. This doesn't work very well if you expect users to type the domain name into their browsers, but it's perfectly OK if you're using a script to redirect users, or if the SSL site is only used for login forms and the like.


Top
   
 Post subject:
PostPosted: Sun Oct 30, 2011 8:09 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
What about "Subject Alternative Name" field?

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Sun Oct 30, 2011 9:17 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
sweh wrote:
What about "Subject Alternative Name" field?

That could work, but good luck finding a cheap SSL vendor that allows two unrelated domains to be tied to a single certificate. Also, whenever you add another domain, you'll have to get a new certificate.

On the other hand, if it's a self-signed certificate, you're free to do whatever you want.


Top
   
 Post subject:
PostPosted: Tue Nov 01, 2011 8:31 am 
Offline
Newbie

Joined: Fri Jul 30, 2010 5:29 am
Posts: 4
[quote="hybinet"][quote="sweh"]What about "Subject Alternative Name" field?[/quote]
That could work, but good luck finding a cheap SSL vendor that allows two unrelated domains to be tied to a single certificate. Also, whenever you add another domain, you'll have to get a new certificate.

On the other hand, if it's a self-signed certificate, you're free to do whatever you want.[/quote]

I am currently vhosting 2 SSL sites from a single cert using "Subject Alternative" (this avoids SNI and is compatible with earlier versions of Windows IE).
The cert I have purchased supports 5 Alternative names and was nice and cheap from 'GoDaddy'.
The nice chaps at Linode support helped me out when I thought I needed an extra IP - but tested successfully without SNI on a single IP using Windows IE6 with no problems!


Top
   
 Post subject:
PostPosted: Tue Nov 01, 2011 9:51 am 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Deadpan110 wrote:
GoDaddy

Very interesting. GoDaddy was the last company I would have expected to sell certs with unrelated domains in the Subject Alternative Name field. Did you register all 5 domains with GoDaddy? Would it make a difference if I tried to add a non-GoDaddy domain?


Top
   
 Post subject:
PostPosted: Tue Nov 01, 2011 10:14 am 
Offline
Newbie

Joined: Fri Jul 30, 2010 5:29 am
Posts: 4
hybinet wrote:
Very interesting. GoDaddy was the last company I would have expected to sell certs with unrelated domains in the Subject Alternative Name field. Did you register all 5 domains with GoDaddy? Would it make a difference if I tried to add a non-GoDaddy domain?


I have no domains registered with them - and to be fair, I have not used unrelated domains on it (mail.mydomain.tld, secure.mydomain.tld) - although the option within their SSL cert control panel does suggest you can use whatever you want.

I also initially had problems navigating their setup and phoned customer support who also indicated I could use what ever domain I wanted as Alternative (20 min call with 3 min wait from Aus to USA - wow... who wouldda thought it).

I am wanting to add an unrelated domain and will attempt to do so this weekend - so I will keep you posted.

Anyways... back to the subject of this post:

ccane wrote:
To which file should I add the certificate, key and the .ca-bundle paths so the HTTPS connection starts working?


Most good providers will/should give examples on howto use certs within your web server setup.

(remember your certs should always be treated as more personal than your crown jewels when deploying them - keep them secure and safe).

What a lot of companies do not provide are howtos on using these same certs for other services - you have purchased a SSL cert that can be used for other services (like SMTP, POP, IMAP etc) - but there is usually plenty of documentation available to get you up and running when you search for it.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group