Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
SSL setup
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Barry Paul  
View profile  
 More options Apr 2, 7:24 pm
From: Barry Paul <barry.p...@gmail.com>
Date: Thu, 2 Apr 2009 16:24:30 -0700 (PDT)
Local: Thurs, Apr 2 2009 7:24 pm
Subject: SSL setup

I haven't seen this mentioned anywhere before but there are a couple
of issues with SSL support in the current release.

1. The paths and file names mentioned in the example deploy.rb and cap
task descriptions are wrong.

Your cert and key should be in:
/etc/ec2onrails/ssl/certs/ec2onrails-default.crt (certificate)
/etc/ec2onrails/ssl/private/ec2onrails-default.key (key)

As with all server files, to have them deployed automatically they
should be in your_app_root/server_config/etc/ec2onrails/ssl/...

2. If your signing authority requires you to use a chain cert (like
GoDaddy) you must add it to the apache ssl configuration file on your
server.

I put the chain cert in:
/etc/ec2onrails/ssl/certs/ec2onrails-chain.crt

And added the following to /etc/apache2/sites-available/default-ssl
 SSLCertificateChainFile    /etc/ec2onrails/ssl/cert/ec2onrails-
chain.crt

I have submitted a patch to automate this process (and fix previous
issue) so hopefully this will be in the next release.

3. (This is not ec2onrails specific but something that gets SSL
newbies every time!) Make sure your private key file doesn't have a
passphrase on it.

If it does, Apache will hang at startup, waiting for you to enter your
passphrase.

When you generate your private key you will probably be required to
enter a passphrase. To remove it follow the instructions here:
http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#removepassphrase

Hope that helps others get going with SSL. Thanks Paul for putting the
foundations in place. Setting up SSL can be frustrating, automating it
with ec2onrails is definitely a big step forward.

Cheers,

--
BP


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frank O'Dwyer  
View profile  
 More options Apr 3, 6:39 am
From: "Frank O'Dwyer" <batsign...@gmail.com>
Date: Fri, 3 Apr 2009 03:39:09 -0700 (PDT)
Local: Fri, Apr 3 2009 6:39 am
Subject: Re: SSL setup
Yes I hit the same problem with the godaddy chain cert and had to roll
my
own config. I figured the documented paths might be wrong, however
I'm
not sure when the default self-signed cert is generated - is it part
of the
'setup' cap task? Just wondering under what circumstances a custom
config might get clobbered by capistrano.

Also do you know how the chain cert is set up with nginx?

Cheers,
Frank

On Apr 3, 12:24 am, Barry Paul <barry.p...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Barry Paul  
View profile  
 More options Apr 3, 1:26 pm
From: Barry Paul <barry.p...@gmail.com>
Date: Fri, 3 Apr 2009 10:26:33 -0700 (PDT)
Local: Fri, Apr 3 2009 1:26 pm
Subject: Re: SSL setup

Frank, as far as I know the self-signed cert is generated by a script
that is run on first startup of the server. So you should be okay.

I haven't done this on nginx but it should be pretty similar.

--
BP

On Apr 3, 3:39 am, "Frank O'Dwyer" <batsign...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Dowman  
View profile  
 More options Apr 5, 2:09 pm
From: Paul Dowman <li...@pauldowman.com>
Date: Sun, 5 Apr 2009 11:09:13 -0700 (PDT)
Local: Sun, Apr 5 2009 2:09 pm
Subject: Re: SSL setup
Thanks for pointing out the error with the paths in the documentation.
FYI, here's what the apache config looks like:
http://github.com/pauldowman/ec2onrails/blob/06378f1c8450c30c777ea4cd...

Just one clarification though, the files that get deployed with the
deploy_files capistrano task can be located wherever you want, the
location is specified in your deploy.rb.

Paul

On Apr 2, 7:24 pm, Barry Paul <barry.p...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google