Route 53 Let’s Encrypt wildcard certificate with acme.sh

Let’s Encrypt is a certificate authority that provides free SSL/TLS certificates. acme.sh is a command-line client for Let’s Encrypt that can be used to automate the process of obtaining and renewing SSL/TLS certificates. To use acme.sh to obtain a wildcard certificate for a domain hosted on Amazon Route 53, you will need to follow these steps:

  1. First, install acme.sh by running the following command:
curl https://get.acme.sh | sh
  1. Next, issue a wildcard certificate for your domain by running the following command:
acme.sh --issue -d example.com -d '*.example.com' --dns dns_aws
  1. Replace “example.com” with your domain name.
  2. The command will automatically create a new DNS record in Route 53 that is required for the domain validation process.
  3. You will be prompted to enter your AWS access key ID and secret access key.
  4. After the validation process is complete, the certificate will be issued and saved in the ~/.acme.sh/ directory.
  5. You can install the certificate on your server by running the following command:
acme.sh --install-cert -d example.com --key-file /path/to/private.key --fullchain-file /path/to/fullchain.cer
  1. You will need to configure your web server to use the certificate.
  2. acme.sh can also automatically renew the certificate before it expires by adding a cronjob.

It’s important to note that, the wildcard certificate will only work for subdomains under the specified domain.

Additionally, you should also check the Let’s Encrypt rate limits and terms of service before using the service.

Leave a Comment