October 26, 2022 . 1 MIN READ
Create a DNS Record
Add an A record that points to the Droplet’s IP address.
Open Port 80
Open port 80 on the Droplet, as it is required for the Certbot verification process.
Install and Run Certbot
Enter your domain name when prompted.
Certificate files will be generated in:/etc/letsencrypt/live/<domain>
Copy Certificate Files to Elasticsearch
Update Elasticsearch Configuration
Edit /etc/elasticsearch/elasticsearch.yml and replace:
with:
Restart Elasticsearch
Close Port 80
Once the certificate is installed, close port 80 on the Droplet.
Let’s Encrypt certificates are valid for 90 days.
Set up automatic renewal using:
This can be scheduled using CRON to renew before expiration.
Reference:
https://www.cloudbooklet.com/install-and-secure-elasticsearch-with-lets-encrypt-on-ubuntu/
https://github.com/CollectionBuilder/collectionbuilder-sa_draft/issues/37