Koozali.org: home of the SME Server

Lets Encrypt and Dehydrated

Offline ElFroggio

  • *
  • 262
  • +0/-0
Lets Encrypt and Dehydrated
« on: December 24, 2016, 05:15:57 PM »
I'm trying to install the letsencrypt certificates. I tried to follow:

https://wiki.contribs.org/Letsencrypt

I did step 2 (prerequisite) and 3 (installation)

When I checked it with https://www.ssllabs.com/ssltest/ I get:

Quote
Trusted   No   NOT TRUSTED

This means most of my https do not work in Chromium & Firefox

What did I miss?

Code: [Select]
config show modSSL
modSSL=service
    CertificateChainFile=/etc/dehydrated/certs/ethelbert.911networks.com/chain.pem
    CommonName=ethelbert.911networks.com
    TCPPort=443
    access=public
    crt=/etc/dehydrated/certs/ethelbert.911networks.com/cert.pem
    key=/etc/dehydrated/certs/ethelbert.911networks.com/privkey.pem
    status=enabled

The next question could be related: I did not do the step 8 (Install with John Crisp contrib) which I thought is the alternative to step 3/3.1 (dehydrated).

or should I undo and only do the step 8 (Install with John Crisp contrib) the doc is not clear

Any suggestion?

Thanks

Syv


« Last Edit: December 24, 2016, 05:17:30 PM by ElFroggio »

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Lets Encrypt and Dehydrated
« Reply #1 on: December 25, 2016, 02:35:56 AM »
Right now, ethelbert.911networks.com is using a GeoTrust certificate, not a Let's Encrypt one.
......

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: Lets Encrypt and Dehydrated
« Reply #2 on: December 25, 2016, 02:39:38 AM »
Right now, ethelbert.911networks.com is using a GeoTrust certificate, not a Let's Encrypt one.

Yes. I reverted back to my original certificate

Thanks

/Syv

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Lets Encrypt and Dehydrated
« Reply #3 on: December 25, 2016, 02:45:57 AM »
Yes. I reverted back to my original certificate
Makes it kind of hard to troubleshoot.  But to your question, John's contrib is an alternative to manually installing dehydrated, so you don't need to (and shouldn't) do both.

Did you set it to use the staging CA?  That would explain the cert being untrusted.
......

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: Lets Encrypt and Dehydrated
« Reply #4 on: December 25, 2016, 03:21:15 AM »
Did you set it to use the staging CA?  That would explain the cert being untrusted.

Yes I did the staging yesterday. I uncommented the config:

Code: [Select]
It should look like this:
# CA="https://acme-staging.api.letsencrypt.org/directory"

Then this morning, I recommented the staging and re-run:
Code: [Select]
dehydrated -c

Should I delete it all and restart?

Thanks

Syv

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Lets Encrypt and Dehydrated
« Reply #5 on: December 25, 2016, 01:24:16 PM »
If you got your cert from the staging server, SSLLabs would report it as being untrusted, but the cert should be there, it should have the right hostname(s) on it, etc.  If all that worked, then you're almost done.  You've already commented out the line setting it to use the staging CA, so the only thing left is to run
Code: [Select]
dehydrated -c -xThe -x flag tells it to go ahead and request a new cert, even though your existing cert isn't about to expire.  Without it, the dehydrated script will see that your cert still has more than 30 days' of validity left and won't renew it.
......

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: Lets Encrypt and Dehydrated
« Reply #6 on: December 25, 2016, 04:40:56 PM »
If you got your cert from the staging server, SSLLabs would report it as being untrusted, but the cert should be there, it should have the right hostname(s) on it, etc.  If all that worked, then you're almost done.  You've already commented out the line setting it to use the staging CA, so the only thing left is to run
Code: [Select]
dehydrated -c -xThe -x flag tells it to go ahead and request a new cert, even though your existing cert isn't about to expire.  Without it, the dehydrated script will see that your cert still has more than 30 days' of validity left and won't renew it.

1. Thank you for spending the time and explaining it to me. Very appreciated.  :-)
2. Can I update and clarify the documentation? because it doesn't say (or I didn't see it) in the 1st portion that I should run:
Code: [Select]
dehydrated -c -x
Thanks

Syv

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Lets Encrypt and Dehydrated
« Reply #7 on: December 25, 2016, 07:15:24 PM »
The -x flag is only necessary if you already have certificates that are still good for more than 30 days, but you want to replace them anyway.  It isn't something you'd use normally with that script (and it absolutely isn't something you should include in its cron job).
......