Koozali.org: home of the SME Server

Thoughts on letsencrypt.com?

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Thoughts on letsencrypt.com?
« on: September 29, 2015, 10:38:03 PM »
I've been running SME Server, strictly as a home server, for the last 15 years or more.  I've been using self-signed SSL/TLS certificates for this time, and so far it's been working OK.  But as security measures advance, it's getting harder to convince modern browsers to accept self-generated certificates as valid.  I heard a while back of letsencrypt.org, an EFF-sponsored project to issue free TLS certificates with domain validation only, which is planning to go live later this fall.  This isn't the only source of free certificates, but it's my understanding that other places' certs aren't accepted by default by most browsers--Let's Encrypt has that as one of their major goals.

Part of their system is a script that reads the apache config, submits the CSR, validates control over the domain (or at least over the web server), and installs the certificate.  I expect that making this work with SME server would take some doing, but even without it, it sounds like it has the potential to be a big win.

There's a pretty informative presentation about it at https://www.youtube.com/watch?v=OZyXx8Ie4pA
......

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Thoughts on letsencrypt.com?
« Reply #1 on: September 30, 2015, 01:21:30 PM »

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #2 on: September 30, 2015, 05:55:00 PM »
I shouldn't be surprised that someone's already on this, at least to the point of being interested.  How can I, as a non-coder, help?  It seems that testing would require something directly exposed to the 'net.

Poking around a bit more at their site, it looks like their utility also automates certificate renewal, and configuring your web server for a reasonable degree of security.  Seems a bit of jiggery-pokery with the config db should be able to integrate this adequately...
......

Offline bunkobugsy

  • *
  • 306
  • +4/-0
Re: Thoughts on letsencrypt.com?
« Reply #3 on: October 01, 2015, 01:12:10 AM »
Meanwhile StartSSL class 1 is completely free and accepted by every client :)

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #4 on: October 01, 2015, 02:57:22 PM »
Good point.  I'd seen StartSSL before, but had forgotten about them.  They're available now, too, while Let's Encrypt is forecasting next month.  I certainly wouldn't call them vaporware at this point, but that doesn't change the fact that they're not available today.  However, StartSSL doesn't support multiple domains on their free certificates, which would make them a no-go for me.

As I think about it, though, I'm thinking that "free certificates" is among the less-remarkable features here.  Perhaps more remarkable is how their tool automates the process--it parses your httpd.conf to determine what domains you have running, generates the private key locally, generates the CSR, makes the request, validates domain control, receives the issued certificate, installs it, and configures your web server to use it.  All of this takes about a minute.  It also automatically handles renewals of that certificate, and they support revocation as well, which StartSSL doesn't.

In short, they want to see HTTPS replace HTTP as broadly as possible, and they seem to be trying to make it as simple as possible for server admins to make that happen.

SME has the configuration template system, so the configuration changes made by the tool wouldn't stick (and might not even work at all).  But the tool also has the ability to create the certs without making the server config changes.  I'd think that doing that, and setting the appropriate config keys to the location of the new key and cert, would be a suitable 80-90% solution (and shouldn't require any development on SME server at all).  The 100% solution would be to have a button or checkbox in the server manager to "Generate SSL Certificates" that would run the whole process, but of course that would take a bit of work on our end.
......

Offline warren

  • *
  • 293
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #5 on: October 20, 2015, 03:23:39 PM »

https://letsencrypt.org/2015/10/19/lets-encrypt-is-trusted.html
Quote
We’re pleased to announce that we’ve received cross-signatures from IdenTrust, which means that our certificates are now trusted by all major browsers. This is a significant milestone since it means that visitors to websites using Let’s Encrypt certificates can enjoy a secure browsing experience with no special configuration required.

Both Let’s Encrypt intermediate certificates, Let’s Encrypt Authority X1 and Let’s Encrypt Authority X2, received cross-signatures. Web servers will need to be configured to serve the appropriate cross-signature certificate as part of the trust chain. The Let’s Encrypt client will handle this automatically.

You can see an example of a server using a Let’s Encrypt certificate under a new cross-signed intermedate here.

Vital personal and business information is flowing over the Internet more frequently than ever, and it’s time to encrypt all of it. That’s why we created Let’s Encrypt, and we’re excited to be one big step closer to bringing secure connections to every corner of the Web.

Offline beast

  • *
  • 245
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #6 on: November 21, 2015, 08:22:34 AM »
I will also like to do some testing with this if needed by a developer!

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #7 on: November 21, 2015, 01:13:19 PM »
Looks like they're pushing back their release schedule a little bit.  They'd previously project public release this week.  They're now saying they'll enter "public beta" on 3 Dec, issuing valid signed certificates at that time.  https://letsencrypt.org/2015/11/12/public-beta-timing.html
......

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Thoughts on letsencrypt.com?
« Reply #8 on: November 21, 2015, 01:41:54 PM »
ATM it seems that centos6 (i.e. SME9) is unsupported because of its python version (2.6,)

anyway, using python from Software collection makes it work.


Offline KevinG

  • *
  • 32
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #9 on: December 04, 2015, 09:29:05 AM »
Hi

The public beta is now available.

As chance would have it, I had a fresh test install on my desk so I tried ssh as root then:

mkdir src
cd src
git clone https://github.com/letsencrypt/letsencrypt.git
cd letsencrypt
./letsencrypt-auto --apache -d your.domain.here

which failed to complete

I had a quick look in letsencrypt-auto which seems configurable for different setups, but the fine points are beyond me. 

Thoughts anyone?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Thoughts on letsencrypt.com?
« Reply #10 on: December 04, 2015, 09:35:16 AM »
you'd really post here some logs/output to help us to understand what's wrong..

please be aware that SME9 has python 2.6 onboard which was not supported by letsencrypt

Offline KevinG

  • *
  • 32
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #11 on: December 04, 2015, 09:48:39 AM »
The first run reported:

Installed:
  augeas-libs.x86_64 0:1.0.0-10.el6                                             
  gcc.x86_64 0:4.4.7-16.el6                                                     
  libffi-devel.x86_64 0:3.0.5-3.2.el6                                           
  openssl-devel.x86_64 0:1.0.1e-42.el6                                         
  redhat-rpm-config.noarch 0:9.0.3-44.el6.centos                               

Dependency Installed:
  cloog-ppl.x86_64 0:0.15.7-1.2.el6        cpp.x86_64 0:4.4.7-16.el6           
  keyutils-libs-devel.x86_64 0:1.4-5.el6   krb5-devel.x86_64 0:1.10.3-42.el6   
  libcom_err-devel.x86_64 0:1.41.12-22.el6 libgomp.x86_64 0:4.4.7-16.el6       
  libselinux-devel.x86_64 0:2.0.94-5.8.el6 libsepol-devel.x86_64 0:2.0.41-4.el6
  mpfr.x86_64 0:2.4.1-6.el6                ppl.x86_64 0:0.10.2-11.el6         
  zlib-devel.x86_64 0:1.2.3-29.el6       

Updated:
  ca-certificates.noarch 0:2015.2.4-65.0.1.el6_6                               

Dependency Updated:
  e2fsprogs.x86_64 0:1.41.12-22.el6                                             
  e2fsprogs-libs.x86_64 0:1.41.12-22.el6                                       
  keyutils.x86_64 0:1.4-5.el6                                                   
  keyutils-libs.x86_64 0:1.4-5.el6                                             
  krb5-libs.x86_64 0:1.10.3-42.el6                                             
  libcom_err.x86_64 0:1.41.12-22.el6                                           
  libgcc.x86_64 0:4.4.7-16.el6                                                 
  libselinux.x86_64 0:2.0.94-5.8.el6                                           
  libselinux-utils.x86_64 0:2.0.94-5.8.el6                                     
  libss.x86_64 0:1.41.12-22.el6                                                 
  openssl.x86_64 0:1.0.1e-42.el6     

Complete!
WARNING: Python 2.6 support is very experimental at present...
if you would like to work on improving it, please ensure you have backups
and then run this script again with the --debug flag!

I was expecting the script to ask a few configuration questions, but it didn't

On re running with debug it looked at what it may need to install then reported:

Nothing to do
Creating virtual environment...
./letsencrypt-auto: line 166: virtualenv: command not found

Thanks

Kevin

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Thoughts on letsencrypt.com?
« Reply #12 on: December 04, 2015, 09:52:15 AM »
first of all, I hope this is your test/play tool SME, not your production one..

about your issue: use Google to find the reasons and the solution.. it seems that you're not the first ;-)

Offline KevinG

  • *
  • 32
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #13 on: December 04, 2015, 10:08:44 AM »
Thanks Stefano

I was stupidly assuming that this was an SME specific issue, not a more general problem, and with SME in the search it didn't find anything helpful.

If, no when, I get it sorted I'll post a summary ...

(Yes definitely a test box)

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Thoughts on letsencrypt.com?
« Reply #14 on: December 04, 2015, 10:11:20 AM »
Thanks Stefano

I was stupidly assuming that this was an SME specific issue, not a more general problem, and with SME in the search it didn't find anything helpful.

If, no when, I get it sorted I'll post a summary ...

(Yes definitely a test box)

you are welcome :-)

BTW, SME9 comes from Centos6.x, so be aware that the search base (and resultsets) is "a little" wider :-)