Koozali.org: home of the SME Server

Thoughts on letsencrypt.com?

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #120 on: December 18, 2015, 03:41:21 PM »
I certainly understand that SME Server is not, and is not intended to be, a bleeding-edge distro--its focus is on stability (which it's built on CentOS/RHEL rather than Fedora or Ubuntu).  I also understand the need for caution, especially when dealing with beta software.  I don't have any issue with labeling the page as WIP, nor identifying the skill level as Advanced.  My concern with at least two of the three points I raised was that they just seemed to be overly cautious, possibly bordering on FUD.

1.  Database backup.  I can see value in a text backup of the config keys you're altering.  "config show modSSL > backup.txt" makes perfect sense.  I can see value in a restore-able backup of the entire config database--if you manage to hose it, just revert to the backup.  We don't have that (yet?).  I just don't see the value in a text backup of the entire config database--you can't restore from it, so you have to manually look through it to find how things were before you changed them.  If you're going to do that, you might as well grep through /var/log/messages and find the changes you've made.  All the changes are logged there, so you can see whatever you've changed.  IMO, if we're going to call something a best practice, it should give some specific benefit that we don't already have, and I'm just not seeing it here.

2.  Note on the certificates.  Is the concern here that the cert files are in /etc/letsencrypt rather than /home/e-smith/?  I could understand that (I raised the question myself up-thread), though so far it doesn't seem to be a problem.  Everything in /etc/letsencrypt is owned by root:root, as in /home/e-smith/ssl.key and /home/e-smith/ssl.crt.  OTOH, those config properties clearly call for full paths, so any config file that's going to use them should be able to deal with a proper (i.e., PEM-encoded) cert or key wherever located.  I think the LE-generated cert/key have already been demonstrated to work with the base install; if they somehow break a contrib, that would be a bug against the contrib.  But I wouldn't have a problem with noting that the SSL key and certificate have traditionally been located in /home/e-smith, and it's not certain at this time whether placing them in /etc/letsencrypt instead would cause any problems.

3.  On SCL.  I know I use that approach for php56 in a cron job, and that works without issue.  I just set up one with a test letsencrypt script (it just calls letsencrypt --help), and it does seem to work--letsencrypt-auto runs, and it doesn't give the Python 2.6 warning, so that indicates it is running in a Python 2.7 environment.

Edit:  Just to be clear, my cron entry is:
Code: [Select]
38 9 18 12 * scl enable python27 '/opt/letsencrypt-test.sh'...and /opt/letsencrypt-test.sh is:
Code: [Select]
[root@e-smith opt]# cat letsencrypt-test.sh
#!/bin/bash
/opt/letsencrypt/letsencrypt-auto --help all

Since I know that letsencrypt-auto will error out if run under Python 2.6 without the --debug flag set, I figured this would be a valid test.  It did run, and emailed me the help output.
« Last Edit: December 18, 2015, 03:44:42 PM by DanB35 »
......

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Thoughts on letsencrypt.com?
« Reply #121 on: December 18, 2015, 06:42:04 PM »
I certainly understand that SME Server is not, and is not intended to be, a bleeding-edge distro--its focus is on stability (which it's built on CentOS/RHEL rather than Fedora or Ubuntu).  I also understand the need for caution, especially when dealing with beta software.  I don't have any issue with labeling the page as WIP, nor identifying the skill level as Advanced.  My concern with at least two of the three points I raised was that they just seemed to be overly cautious, possibly bordering on FUD.

DanB35: every experienced user knows that every available contrib has been tested, and so there's no need to backup dbs or being worried..

anyway, we're here talking about a new feature.. a WIP.. letsencrypt seems to be very interesting and so many (un)experienced users may be attracted by it.. messing with certificats could lead to an unusable server.. while me, you and many others know how to deal with an unresponsive web server, a unexperienced user could say "ehi, damn, I broke my server.." (we already had some cases in this topic too.. ;-) )

there's no FUD here.. once we'll have a working contrib, we'll be sure everything to be safe, as usual..

I saw you spent much time to read all certificates related pages.. I'm sure that some of them could be outdated and/or that their content cpuld/should be improved or, at least, unified in some ways.. if so, please, feel free to edit where needed.. and, of course, thank you for your input and your effort..

SME is a good product ALSO because it has a good documentation.. the issue here is that wiki is huge, we are few and sometimes we just don't be aware that some pages are (too) old and must be updated.

Offline bpkheops

  • *
  • 15
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #122 on: January 19, 2016, 11:31:38 PM »
Just a little word to thank you all for your work.

I followed these procedure : http://wiki.contribs.org/Letsencrypt

And it worked the first time, perfectly. I have now a free public certificate. It's awesome !  8-)
I followed the method with letsencrypt.sh, it seems easier for me.

The wiki is very well done, thank about troubleshooting for the newbies on the subject.


Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #123 on: January 20, 2016, 03:04:30 PM »
And it worked the first time, perfectly. I have now a free public certificate. It's awesome !  8-)
I followed the method with letsencrypt.sh, it seems easier for me.
Excellent!  Yes, I think for our purposes that letsencrypt.sh is a simpler path than using the official client.  John is working on an RPM that should simplify the process even further, and work equally well on SME8 and SME9.  I'd still like to see it move into the base system, but this would be a big step in that direction.
......

Offline ReetP

  • *
  • 3,940
  • +6/-0
Re: Thoughts on letsencrypt.com?
« Reply #124 on: January 20, 2016, 03:34:21 PM »
Excellent!  Yes, I think for our purposes that letsencrypt.sh is a simpler path than using the official client.  John is working on an RPM that should simplify the process even further, and work equally well on SME8 and SME9.  I'd still like to see it move into the base system, but this would be a big step in that direction.

Yes, please have a go at installing and testing the RPM. Best on a test machine, but we need feedback.

http://bugs.contribs.org/show_bug.cgi?id=8676

https://github.com/reetp/smeserver-letsencrypt/tree/smeserver-letsencrypt-0.1
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline brianr

  • *
  • 990
  • +2/-0
Re: Thoughts on letsencrypt.com?
« Reply #125 on: January 20, 2016, 06:26:09 PM »
Yes, please have a go at installing and testing the RPM. Best on a test machine, but we need feedback.

http://bugs.contribs.org/show_bug.cgi?id=8676

https://github.com/reetp/smeserver-letsencrypt/tree/smeserver-letsencrypt-0.1

Just to encourage les autres, I can confirm I've used John's RPM and ended up with working certs on three systems so far...
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

guest22

Re: Thoughts on letsencrypt.com?
« Reply #126 on: May 08, 2016, 12:50:08 AM »
Installed letsencrypt.sh according to wiki 2 days ago. Today I see the following on running the letsencrypt.sh script. (followed wiki directives and testing daily cron job).

 letsencrypt.sh -c
#
# !! WARNING !! No main config file found, using default config!
#
ERROR: WELLKNOWN directory doesn't exist, please create /usr/local/bin/.acme-challenges and set appropriate permissions.

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #127 on: May 08, 2016, 01:06:38 AM »
What are the contents of /etc/letsencrypt.sh?
......

guest22

Re: Thoughts on letsencrypt.com?
« Reply #128 on: May 08, 2016, 01:08:14 AM »
What are the contents of /etc/letsencrypt.sh?


There is no /etc/letsencrypt.sh

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #129 on: May 08, 2016, 01:13:25 AM »
There is no /etc/letsencrypt.sh
Well, there's your problem.  Why not?  The git clone to download letsencrypt.sh should have been done from inside /etc/, and it should have created a subdirectory of letsencrypt.sh.  Was that directory present at any time?
......

guest22

Re: Thoughts on letsencrypt.com?
« Reply #130 on: May 08, 2016, 01:14:15 AM »
MY BAD!!!


Instead of using GIT, I downloaded and moved the letsencrypt.sh in the root directory.....


Sorry for the noise..

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #131 on: May 08, 2016, 01:18:29 AM »
Ah, so you didn't follow the wiki instructions after all.  Easy enough to fix, though.  Create /etc/letsencrypt.sh, put config.sh and domains.txt in there, and you should be good.
......

guest22

Re: Thoughts on letsencrypt.com?
« Reply #132 on: May 08, 2016, 01:19:34 AM »
Ah, so you didn't follow the wiki instructions after all.


:-) All fixed now. Thanks.

guest22

Re: Thoughts on letsencrypt.com?
« Reply #133 on: May 08, 2016, 01:22:20 AM »
The git clone to download letsencrypt.sh should have been done from inside /etc/

Important!

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #134 on: May 08, 2016, 01:29:40 AM »
I know that's in the wiki page, but if it needs to be made more prominent, feel free.  Another option would be to clone it somewhere elsewhere, and manually create /etc/letsencrypt.sh and the two config files there.
......