Koozali.org: home of the SME Server

Thoughts on letsencrypt.com?

Offline KevinG

  • *
  • 32
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #60 on: December 09, 2015, 09:10:47 PM »
Why are you suggesting server only mode is not supported?

The first test box I set up was server only and worked fine.

Am I missing something?

Ah, I think if it was behind a NAT router you would have problems, but if it is straight on a public IP it is fine.  So we probably need a note about NAT, or a recommendation to setup and renew with direct connection?

Once you have the certificates they seem to work ok through the NAT (I can double check at the office tomorrow)

Apologies that this is a bit of a ramble.

Kevin

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #61 on: December 09, 2015, 10:20:15 PM »
Maybe we need to add to the wiki page that server-gateway mode is the only supported mode?
Since this isn't really "supported" at all (it isn't even a contrib yet, much less part of the official distro), and SSL certificates certainly ought to work in sever-only mode, I wouldn't think a note like this would really be appropriate.  I've added a statement to the prerequisites that port 80 must be open to the outside (I don't believe it's the case that both ports 80 and 443 need to be open for the client to run, but obviously 443 needs to be open for the normal use of the certificate), which I'd think would really be adequate.
......

guest22

Re: Thoughts on letsencrypt.com?
« Reply #62 on: December 09, 2015, 10:25:15 PM »
Good enough for me :-)


psss, did you know that SME Server 9.1 just got released....

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #63 on: December 09, 2015, 10:44:48 PM »
psss, did you know that SME Server 9.1 just got released....
Nope, there's no release announcement here in the forums, and I don't visit the contribs.org home page that often.  Can I upgrade from 9.0 using yum, or do I need to download the ISO, down the server, boot from the ISO, and do an upgrade that way?
......

Offline KevinG

  • *
  • 32
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #64 on: December 09, 2015, 10:52:47 PM »
And there was me thinking I'd get a break from SME for a bit tomorrow :wink:

guest22

Re: Thoughts on letsencrypt.com?
« Reply #65 on: December 09, 2015, 10:54:07 PM »
Nope, there's no release announcement here in the forums, and I don't visit the contribs.org home page that often.  Can I upgrade from 9.0 using yum, or do I need to download the ISO, down the server, boot from the ISO, and do an upgrade that way?


It's just hitting the mirrors for the next 48 hours. Yum will do the trick.

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #66 on: December 09, 2015, 10:55:26 PM »
Great!  I assume release notes will be posted shortly?
......

Offline KevinG

  • *
  • 32
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #67 on: December 09, 2015, 10:57:40 PM »
It's not on the UK mirror, but have downloaded from

http://sme-mirror.firewall-services.com/releases/9.1/iso/x86_64/

guest22

Re: Thoughts on letsencrypt.com?
« Reply #68 on: December 09, 2015, 10:59:01 PM »
Great!  I assume release notes will be posted shortly?


Announcement and release notes will follow shortly. After all mirrors have been synced. just gave a heads up on what's coming...

Offline adamcyberspace

  • *
  • 16
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #69 on: December 09, 2015, 11:51:33 PM »
My issue is that I continued to create the certificates after i got an error message from Letsencrypt. This killed my web server.. My server is  setup in "server only"  mode and I have all the right ports forwarded through the firewall. Are you saying that Server only mode wont work? Why not?

guest22

Re: Thoughts on letsencrypt.com?
« Reply #70 on: December 09, 2015, 11:52:58 PM »
What's the error please? What do the logs say, what did you see?

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #71 on: December 10, 2015, 12:27:38 AM »
My issue is that I continued to create the certificates after i got an error message from Letsencrypt.
What I think you did wasn't to create the certificates (it's the letsencrypt client and server that do that), but instead to set config database entries pointing to a certificate, chain, and key that didn't exist.  That would most definitely kill your web server.

The error message given by the client indicates that the letsencrypt server wasn't able to resolve livingnatural.com.au.  I don't know why that would be; I'm able to resolve it to 139.218.184.183.

I'd suggest trying again.  Do
Code: [Select]
# cd /opt/letsencrypt
# service httpd-e-smith stop
# scl enable python27
# ./letsencrypt-auto certonly --standalone --email adam@livingnatural.com.au -d livingnatural.com.au
# service httpd-e-smith start

...and stop there, and post the output here.  This should be safe to run, as it won't change any of your server configuration.  Also post the output of 'ls -l /etc/letsencrypt/live/livingnatural.com.au/'

BTW, do you want more than one host name on the certificate?  If I browse to livingnatural.com.au, I'm automatically redirected to www.livingnatural.com.au; wouldn't you want the www. hostname on the certificate as well?  If so, that's easy to do; just add "-d www.livingnatural.com.au" to the end of the letsencrypt-auto command.
......

Offline adamcyberspace

  • *
  • 16
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #72 on: December 10, 2015, 12:52:13 AM »
My server runs as a VM on Proxmox. Before installing Letsencrypt i took a snapshot..   I have since restored to the working version. I did take a post implementation snapshot with the broken config. When I  get a chance  i  may restore to a new VM. but I suspect it may be quicker to snapshot again and start the letsencrypt install from scratch. 

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Thoughts on letsencrypt.com?
« Reply #73 on: December 10, 2015, 12:54:58 AM »
I'd suggest installing letsencrypt (which requires as prerequisites only installing scl-utils and python27 from the scl-python27 repository), and then taking a snapshot before running it.  Your server at that point should be in an entirely safe and consistent state.  Then try what I suggested above.
......

Offline KevinG

  • *
  • 32
  • +0/-0
Re: Thoughts on letsencrypt.com?
« Reply #74 on: December 10, 2015, 07:59:03 AM »
Adam

If letsencrypt gets as far as a can't resolve error then python etc is all in place OK and you have to be looking at a connectivity issue of some sort.  I had the same error on a test box until I made it public facing.

I shall experiment with port forwarding through a NAT if I get a moment later (unless anyone else can report their experiences)