How Install SSL on ERPNext (Easy and 100% Working)

Install SSL on ERPNext 13

Hello all, this is great news. When I was searching for SSL certificate enabling posts for ERPNext, I could find more and more posts on the web. But some of them were outdated and some of them were full of issues. Finally, I could find a great solution and really like to share it with you to save your time.

Without much talking, let’s get started. By the way, you should complete the installation process of ERPNext without SSL to start with the following steps.

Let’s install the certbot manually

sudo apt-get install certbot

Then, we have to stop the Nginx server.

sudo systemctl stop nginx

After that, you can create certificates by using the following command.

sudo certbot --standalone --agree-tos --domain -n -m [email protected] certonly

Then, start the Nginx again.

sudo systemctl start nginx

Finally, you have to edit the path bench/sites/ and add the following lines after database info with comma.

“ssl_certificate”: “/etc/letsencrypt/live/”,
“ssl_certificate_key”: “/etc/letsencrypt/live/”

Finally, let’s regenerate the Nginx and reload it to enjoy our SSL activated ERPNext system.

bench setup nginx
sudo service nginx reload

** You need to run the following command to see the output which turns on the multi-tenant environment.

bench config dns_multitenant on

I hope you will share this post and other posts with your friends. Please let me know your comments. Good Luck!

Related posts

How to Install ERPNext 14 on Ubuntu 22.04 - Success Step By Sep Guide

ERPNext is a great ERP for system for all the small range to enterprise level companies in any…
Read more

How to Install ERPNext 14 on CentOS 8

ERPNext is a powerful open-source enterprise resource planning (ERP) platform that helps businesses…
Read more

ERPNext Timed Out Issue - Fixed

Hello all, this is another issue I got while I was working on ERPNext. So, this is what you can do.
Read more
Become a Trendsetter

Sign up for KDJ Guru's Daily Digest and get the best of KDJ Guru Articles, tailored for you.

Leave a Reply

Your email address will not be published. Required fields are marked *