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 #45 on: December 08, 2015, 06:02:18 PM »
Makes sense.  I've edited the script in the wiki to run all three events.
......

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Thoughts on letsencrypt.com?
« Reply #46 on: December 08, 2015, 06:16:23 PM »
AFAIK, signal-event email-update is not enough, because it simply reload qpsmtpd/sqpsmtpd, and does not restart them. We should create a new ssl-update event, which can restart needed services (and any contrib author using the SSL cert could hook into it)

Please open an NFR for this
C'est la fin du monde !!! :lol:

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #47 on: December 08, 2015, 06:54:59 PM »
......

Offline flep

  • *
  • 14
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #48 on: December 08, 2015, 11:41:06 PM »
So the next matter is setting up the automatic renewal.  RequestedDeletion linked to the cron manager contrib, which I wasn't aware of, and which would make editing cron jobs a bit easier, but I don't see any way with that to set a job to run every other month, which would be plenty frequent for certificate renewal.  I'd think the cron entry for root should look something like
48 22 3 */2 * /opt/letsencrypt-renew.sh

In a template-driven distro editing cron shoud be done like in http://wiki.contribs.org/Cron_entry

I edit the wiki according to.

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #49 on: December 09, 2015, 03:19:25 AM »
I hadn't known (or at least remembered) that crontab was templated.  Good call to add that.
......

guest22

Re: Thoughts on letsencrypt.com?
« Reply #50 on: December 09, 2015, 06:18:04 AM »
Good calls guys. @others reading this, please test and provide your feedback and/or suggestions.

Offline adamcyberspace

  • *
  • 16
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #51 on: December 09, 2015, 09:57:52 AM »
It broke my server. HTTPD is started but web pages no longer display. Not even when I use the IP address...

Offline adamcyberspace

  • *
  • 16
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #52 on: December 09, 2015, 10:09:24 AM »
root@server letsencrypt]# ./letsencrypt-auto certonly --standalone --email adam@livingnatural.com.au -d livingnatural.com.au
Updating letsencrypt and virtual environment dependencies.......
Running with virtualenv: /root/.local/share/letsencrypt/bin/letsencrypt certonly --standalone --email adam@livingnatural.com.au -d livingnatural.com.au
Version: 1.1-20080819
Version: 1.1-20080819
Failed authorization procedure. livingnatural.com.au (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client for DV :: DNS query timed out

IMPORTANT NOTES:
 - The following 'urn:acme:error:connection' errors were reported by
   the server:

   Domains: livingnatural.com.au
   Error: The server could not connect to the client for DV

Any thoughts on why my web server no longer works at all??
« Last Edit: December 09, 2015, 10:23:41 AM by adamcyberspace »

Offline KevinG

  • *
  • 32
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #53 on: December 09, 2015, 11:28:03 AM »
The script runs
service httpd-e-smith stop

If it stopped you will need a

service httpd-e-smith start

The error occurred for me when I did not have my test server exposed to the internet and correctly on a public dns.  Check that first.

Good luck

Offline adamcyberspace

  • *
  • 16
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #54 on: December 09, 2015, 11:42:21 AM »
service httpd-e-smith was restarted.. I even restarted the server, but to no avail..
Fortunately I took a snapshot of the server before making the change, and have now rolled back.
Not keen to try again until I figure out what went wrong.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Thoughts on letsencrypt.com?
« Reply #55 on: December 09, 2015, 11:44:27 AM »
well, you'd take a look at the logs..


Offline KevinG

  • *
  • 32
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #56 on: December 09, 2015, 12:03:17 PM »
Did you stop when you got the error or did you continue and try the following lines?:

config setprop modSSL crt /etc/letsencrypt/live/test.firstdomain.co.uk/cert.pem
config setprop modSSL key /etc/letsencrypt/live/test.firstdomain.co.uk/privkey.pem
config setprop modSSL CertificateChainFile /etc/letsencrypt/live/test.firstdomain.co.uk/fullchain.pem
signal-event domain-modify; signal-event email-update

Setting those properties without the certificates will kill off https service quite well.

You can use config delprop to remove settings you don't want.

Offline adamcyberspace

  • *
  • 16
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #57 on: December 09, 2015, 12:07:11 PM »
I did continue with the error.. Now I know what went wrong..
Thank you very much..
I will try again soon.

Offline flep

  • *
  • 14
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #58 on: December 09, 2015, 07:50:09 PM »
root@server letsencrypt]# ./letsencrypt-auto certonly --standalone --email adam@livingnatural.com.au -d livingnatural.com.au
Updating letsencrypt and virtual environment dependencies.......
Running with virtualenv: /root/.local/share/letsencrypt/bin/letsencrypt certonly --standalone --email adam@livingnatural.com.au -d livingnatural.com.au
Version: 1.1-20080819
Version: 1.1-20080819
Failed authorization procedure. livingnatural.com.au (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client for DV :: DNS query timed out

IMPORTANT NOTES:
 - The following 'urn:acme:error:connection' errors were reported by
   the server:

   Domains: livingnatural.com.au
   Error: The server could not connect to the client for DV

Any thoughts on why my web server no longer works at all??

both ports 80 and 433 must be opened or forward, if you use virtual machine or proxy please check config.

guest22

Re: Thoughts on letsencrypt.com?
« Reply #59 on: December 09, 2015, 07:52:36 PM »
Maybe we need to add to the wiki page that server-gateway mode is the only supported mode? We need to add something about this for there any many exotic port forwarded masquerading setups out there.


Thoughts?