Let's Encrypt SSL certificate client linked with Amazon Lightsail
282
This container uses the AWS lightsail API with dehydrated to automatically obtain SSL certs from Let's Encrypt.
You can issue a wildcard certificate with the command below.
docker run -it --rm --name lightsail \
-v /volume1/letsencrypt:/usr/local/dehydrated/certs \
isul/letsencrypt-aws-lightsail:v1.2 \
/usr/local/dehydrated/lightsail domain=yourdomain.com [email protected] attempts=10 sleep_time=30 \
aws_region=us-east-1 aws_access_key_id=your_access_key_id aws_secret_access_key=your_secret_access_key
The docker command provided in this quick start is given as an example and parameters should be adjusted to your need.
/volume1/letsencrypt: Change this path to the path where the certificate will be stored
domain: Specifies your domain
email: Specifies the contact e-mail address. This is passed on to Let's Encrypt, and may be used for important service announcements.
attempts: Specifies the maximum retry count to valide DNS settings (This can be omitted, the default is 3). Increase this value if the following error occurs. “ERROR: Challenge is invalid!”
sleep_time: Specifies the time(seconds) to wait before querying the value after setting the TXT record(This can be omitted, the default is 30)
aws_region: Specifies an AWS Region (Must be “us-east-1”)
aws_access_key_id: Specifies an AWS access key associated with an IAM user or role
aws_secret_access_key: Specifies the secret key associated with the access key
# ls -la /volume1/letsencrypt/yourdomain.com
total 55
-rw------- 1 root root 1635 2020-04-05 21:48 cert-1586090933.csr
-rw------- 1 root root 2240 2020-04-05 21:49 cert-1586090933.pem
-rw------- 1 root root 1643 2020-04-05 21:49 cert-1586090982.csr
-rw------- 1 root root 2244 2020-04-05 21:50 cert-1586090982.pem
lrwxrwxrwx 1 root root 19 2020-04-05 21:50 cert.csr -> cert-1586090982.csr
lrwxrwxrwx 1 root root 19 2020-04-05 21:50 cert.pem -> cert-1586090982.pem
-rw------- 1 root root 1648 2020-04-05 21:49 chain-1586090933.pem
-rw------- 1 root root 1648 2020-04-05 21:50 chain-1586090982.pem
lrwxrwxrwx 1 root root 20 2020-04-05 21:50 chain.pem -> chain-1586090982.pem
-rw------- 1 root root 3888 2020-04-05 21:49 fullchain-1586090933.pem
-rw------- 1 root root 3892 2020-04-05 21:50 fullchain-1586090982.pem
lrwxrwxrwx 1 root root 24 2020-04-05 21:50 fullchain.pem -> fullchain-1586090982.pem
-rw------- 1 root root 3243 2020-04-05 21:48 privkey-1586090933.pem
-rw------- 1 root root 3243 2020-04-05 21:49 privkey-1586090982.pem
lrwxrwxrwx 1 root root 22 2020-04-05 21:50 privkey.pem -> privkey-1586090982.pem
Please refer to the link below for details.
Content type
Image
Digest
Size
102.3 MB
Last updated
about 6 years ago
docker pull isul/letsencrypt-aws-lightsail:v1.2