🔒Setup SSL Certificate
SSL Certificate setup in linux server
STEP 1: Log in as a root to the server.
ssh root@ip_addressSTEP 2: Clone dehydrated Github repo inside /opt/
/opt/cd /opt/ && git clone https://github.com/dehydrated-io/dehydratedSTEP 3: Create dehydrated directory inside /etc/
dehydrated directory inside /etc/cd /etc/ && mkdir dehydratedSTEP 4: Copy config file into /etc/dehydrated/ from docs/examples
cd /dehydrated/ && cp /opt/dehydrated/docs/examples/config .STEP 5: Create .well-known/acme-challenge directory in /var/www/html
mkdir -p /var/www/html/.well-known/acme-challengeSTEP 6: Change the config file as follows
BASEDIR=/etc/dehydrated
WELLKNOWN="/var/www/html/.well-known/acme-challenge"
[email protected]STEP 7: Create domains.txt inside /etc/dehydrated/
STEP 8: Update nginx.conf file with .well-known location
STEP 9: Restart nginx
STEP 10: Run Register and Accept terms then Run dehydrated
STEP 11: Configure server in nginx.conf
STEP 12: Restart Nginx Server again
STEP 13: To Renew Certificates setup a weekly cron job
Last updated