Hi all,
I finished testing the client script letsencrypt.sh.
Very nice and easy to use. You can modify the needed files.
The main feature of this client script is that it does not require anything except the installation of git to download the files.
FOR TEST MODE to respect the 5/7 limits.
File /etc/letsencrypt.sh/config.sh // adding the line CA="
https://acme-staging.api.letsencrypt.org/directory".
#!/bin/bash
# config.sh
CA="https://acme-staging.api.letsencrypt.org/directory"
WELLKNOWN="/home/e-smith/files/ibays/Primary/html/.well-known/acme-challenge"
HOOK="/usr/local/bin/letsencrypt-hook.sh"
# E-mail to use during the registration (default: <unset>)
CONTACT_EMAIL="admin@toto.org"
For TEST mode
WITHOUT installation of the certificate.
File letsencrypt-hook.sh // commenting all the /sbin/e-smith... line.
#!/bin/bash
if [ $1 = "deploy_cert" ]; then
KEY=$3
CERT=$4
CHAIN=${5/fullchain.pem/chain.pem}
#
## /sbin/e-smith/db configuration setprop modSSL key $KEY
## /sbin/e-smith/db configuration setprop modSSL crt $CERT
## /sbin/e-smith/db configuration setprop modSSL CertificateChainFile $CHAIN
## /sbin/e-smith/signal-event domain-modify
## /sbin/e-smith/signal-event email-update
## /sbin/e-smith/signal-event ibay-modify
fi
cron job to be run every month even if certificate is
STILL VALID.
letsencrypt.sh -c
Wil return
INFO: Using main config file /etc/letsencrypt.sh/config.sh
Processing www.toto.org with alternative names: toto.org server-name.toto.org... www.titi.info
+ Checking domain name(s) of existing cert... unchanged.
+ Checking expire date of existing cert...
+ Valid till Jun 2 20:16:00 2016 GMT (Longer than 30 days). Skipping!
FORCING renew even if certificate is
STILL VALID.
letsencrypt.sh -c --renew
SECURITY ISSUESFor the creation of the account key // I have no problem with that.
...
# INFO: Using main config file /etc/letsencrypt.sh/config.sh
+ Generating account key...
+ Registering account key with letsencrypt...
...
For the creation of the CSR // I have no problem with that.
...
+ Valid till Jun 2 20:16:00 2016 2016 GMT (Longer than 30 days). Ignoring because renew was forced!
+ Signing domains...
+ Generating signing request...
+ Requesting challenge for www.toto.org...
...
BUT WHO is creating the private key // I have a
VERY BIG problem with that.
...
+ Signing domains...
+ Creating new directory /etc/letsencrypt.sh/certs/www.micronator.org ...
+ Generating private key.
+ Generating signing request...
+ Requesting challenge for www.micronator.org...
...
I remember seeing someone saying that there was a problem with Let's Encrypt. With that, now I know why.
With the official client, it is the user generating the CSR so it is much better.
Michel-André