Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to setup SSL for zotonic?
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
  9 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
 
kerry liu  
View profile  
 More options Jul 13 2011, 9:29 pm
From: kerry liu <metadatanetwo...@gmail.com>
Date: Wed, 13 Jul 2011 18:29:44 -0700 (PDT)
Local: Wed, Jul 13 2011 9:29 pm
Subject: How to setup SSL for zotonic?
Hi,

I really confused with ssl_certfile, ssl_keyfile and cacertfile, I use
the below steps to create those files, but seems failed to setup https
for zotonic:

openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout
ssl_keyfile.pem -out ssl_cacertfile.pem
openssl req -out server.csr -key ssl_keyfile.pem -new

Question is how to create ssl_certfile?

Many thx for your help.

Best regards
Kerry


 
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.
Ivan Martinez  
View profile  
 More options Oct 20 2012, 3:29 pm
From: Ivan Martinez <supertra...@gmail.com>
Date: Sat, 20 Oct 2012 12:29:58 -0700 (PDT)
Local: Sat, Oct 20 2012 3:29 pm
Subject: Re: How to setup SSL for zotonic?

I'm also confused with the certificates configuration, the lack of a
certificate naming convention makes things difficult. What I have is:
- key.pem, my private key.
- request.pem, the certificate request.
- ssl.pem, the signed certificate that contains key.pem.
I suppose ssl_certificate must be "ssl.pem" and ssl_keyfile "key.pem" but
what about ssl_cacertfile?. Is it the "cacerts certificates file" mentioned
here?:
http://docs.oracle.com/javase/1.5.0/docs/tooldocs/solaris/keytool.htm...
Is ssl_cacertfile a mandatory parameter?.
Thank you,
Iván Martínez

El jueves, 14 de julio de 2011 03:29:44 UTC+2, kerry liu escribió:


 
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.
Marc Worrell  
View profile  
 More options Oct 20 2012, 4:08 pm
From: Marc Worrell <mworr...@mac.com>
Date: Sat, 20 Oct 2012 22:07:49 +0200
Local: Sat, Oct 20 2012 4:07 pm
Subject: Re: [Zotonic-Usr] Re: How to setup SSL for zotonic?

Hi,

Maybe the 0.9 ssl docs can take away a bit of your confusion.

http://zotonic.com/docs/ref/modules/mod_ssl.html

- Marc

Sent from my iPhone

On 20 okt. 2012, at 21:29, Ivan Martinez <supertra...@gmail.com> wrote:


 
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.
Ivan Martinez  
View profile  
 More options Oct 24 2012, 3:28 pm
From: Ivan Martinez <supertra...@gmail.com>
Date: Wed, 24 Oct 2012 12:28:31 -0700 (PDT)
Local: Wed, Oct 24 2012 3:28 pm
Subject: Re: [Zotonic-Usr] Re: How to setup SSL for zotonic?

Thank you Marc, I understand from 0.9 docs that I only need ssl_certfile
and ssl_keyfile, since I'm using a self-signed certificate. I'm running
Zotonic 0.8.1 and following the instructions for 0.6 published here:
http://zotonic.com/https-support
It doesn't seem to work but I don't get any error either, it's like nothing
changed. I even tried setting wrong paths to the certificate files as
follows:

{listen_port_ssl, 8443},
{ssl, true},
{ssl_certfile, "/wrong_path/website.local.pem"},
{ssl_keyfile, "/wrong_path/website.local.key"}

Still no error message, my Zotonic seems to ignore these settings. I looked
in the modules list of the admin console but couldn't find anything related
to SSL. Am I forgetting to install or enable anything?.

Thank you,
Ivan

El sábado, 20 de octubre de 2012 22:08:16 UTC+2, Marc Worrell escribió:


 
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.
Marc Worrell  
View profile  
 More options Oct 24 2012, 3:38 pm
From: Marc Worrell <mworr...@me.com>
Date: Wed, 24 Oct 2012 21:37:53 +0200
Local: Wed, Oct 24 2012 3:37 pm
Subject: Re: [Zotonic-Usr] Re: How to setup SSL for zotonic?

In 0.8 the SSL is handled by starting a separate listener from the main supervisor.
Check src/zotonic_sup.erl

It just hands all settings you pass to MochiWeb for initializing a SSL listener.

Very strange that you seem to have problems, as MaxClass.com is running on 0.8 and uses the same code.

Maybe you can check what happens in the listeners?
We might need to add some extra checks, which is also very useful for the 0.9

- Marc

On 24 okt. 2012, at 21:28, Ivan Martinez wrote:


 
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.
Ivan Martinez  
View profile  
 More options Oct 28 2012, 9:12 am
From: Ivan Martinez <supertra...@gmail.com>
Date: Sun, 28 Oct 2012 06:12:54 -0700 (PDT)
Local: Sun, Oct 28 2012 9:12 am
Subject: Re: [Zotonic-Usr] Re: How to setup SSL for zotonic?

Hello Marc,
I'm not sure how to check what happens with the listeners. I run Zotonic
and did the following in the console:

(zotonic...@localhost.localdomain)3> z_config:get_dirty(ssl_certfile).
undefined
(zotonic...@localhost.localdomain)4> z_config:get_dirty(ssl_keyfile).
undefined
(zotonic...@localhost.localdomain)5> z_config:get_dirty(ssl_cacertfile).
undefined
(zotonic...@localhost.localdomain)6> z_config:get_dirty(ssl).
false

Looks like it's not reading any SSL parameter from the config file. This
should be "/priv/sites/mysite/config" file, right?.
Thank you,
Ivan

El miércoles, 24 de octubre de 2012 21:38:01 UTC+2, Marc Worrell escribió:


 
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.
Andreas Stenius  
View profile  
 More options Oct 29 2012, 4:16 am
From: Andreas Stenius <andreas.sten...@astekk.se>
Date: Mon, 29 Oct 2012 09:16:37 +0100
Local: Mon, Oct 29 2012 4:16 am
Subject: Re: [Zotonic-Usr] Re: How to setup SSL for zotonic?

Hi Ivan,

I've not followed the discussion from beginning, but the
z_config:get_dirty/1 reads the priv/config file (hint: there's no site or
context passed in to be able to deduce which other config file to read).

Hope this helps.

//Andreas

2012/10/28 Ivan Martinez <supertra...@gmail.com>


 
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.
Ivan Martinez  
View profile  
 More options Nov 3 2012, 3:16 pm
From: Ivan Martinez <supertra...@gmail.com>
Date: Sat, 3 Nov 2012 12:16:05 -0700 (PDT)
Local: Sat, Nov 3 2012 3:16 pm
Subject: Re: [Zotonic-Usr] Re: How to setup SSL for zotonic?

Thank you Andreas, I have added the certificate configuration to
priv/config and now it works. I don't know why I didn't see the example in
config.in, probably because I didn't expect to find it there. There is
something I don't understand: if the certificate is domain-specific, how
come it is configured in the general priv/config file instead of
/priv/sites/mysite/config for the website whose domain I want to secure?.
If I need to add two certificates for two domains in the same Zotonic
server, how is it done?.
Thank you,
Ivan Martinez

El lunes, 29 de octubre de 2012 09:16:42 UTC+1, Andreas Stenius escribió:


 
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.
Arjan Scherpenisse  
View profile  
 More options Nov 3 2012, 3:58 pm
From: Arjan Scherpenisse <ar...@scherpenisse.net>
Date: Sat, 03 Nov 2012 20:58:40 +0100
Local: Sat, Nov 3 2012 3:58 pm
Subject: Re: [Zotonic-Usr] Re: How to setup SSL for zotonic?

On 11/03/2012 08:16 PM, Ivan Martinez wrote:

> Thank you Andreas, I have added the certificate configuration to
> priv/config and now it works. I don't know why I didn't see the
> example in config.in, probably because I didn't expect to find it
> there. There is something I don't understand: if the certificate is
> domain-specific, how come it is configured in the general priv/config
> file instead of /priv/sites/mysite/config for the website whose domain
> I want to secure?. If I need to add two certificates for two domains
> in the same Zotonic server, how is it done?.

That is not possible. virtual hosting with SSL is impossible: each
IP+port combination needs its own SSl certificate; certificates.

In Zotonic 0.9, we have refactored SSL support so that SSL sites can run
on different ports, each vhost a different SSL port.

See Marc's wonderful SSL doc page on this topic (0.9 specific!)
http://zotonic.com/docs/ref/modules/mod_ssl.html

Arjan


 
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 »