Install SSL Certificate for ERPNext | Linux | Nginx | Apache | Frappe Bench | Free SSL
Video Chapters:
00:00 Introduction
00:32 Update the Server
01:03 Access Frappe Bench
01:22 Adding A Type Record
02:37 Enable DNS Support
03:01 Connect Domain on ERPNext
03:47 Resetup Nginx Configuration
04:08 Install Necessary Packages
04:25 Issue the SSL Certificate
05:50 Conclusion
Hey Guys! Welcome back to Byte Flick the place to unlock your tech potential and boost your tech skills.
If you are new to my channel, please hit that subscribe button and get the latest updates on my other tech tutorial videos.
In this video, we are going through how to install an SSL certificate for ERPNext. So, let’s get into it.
We have already installed the ERPNext on the server. If you want to install ERPNext on your server check out my other video. A link will be in the description. Check that out!
First, login into your server with any ssh client. I am using Windows 10 built-in SSH client. We are using Ubuntu 22.04 version which is a recommended OS by ERPNext.
After login check for any updates or upgrade on the server and reboot the server by executing this command.
sudo apt update && sudo apt upgrade && sudo reboot
Now login into your frappe main user.
sudo su erpnext
Now change the directory where you installed the frappe bench.
cd /home/erpnext/frappe-bench
Now connect your preferred domain which you want to access. For example, I want to access ERPnext with byteflick.shadefocus.com
So, first, add the A type record on your domain DNS. I am using cloudflare dns on my domain. We will now add the A record which will link the domain to our server IP.
I want to access the ERPNext with this URL if you want to use another URL change this name to your preferred URL.
Remember to turn off this proxy option otherwise, it will not work.
Now we will turn on the DNS support on our ERPNext by using this command.
bench config dns_multitenant on
Now we will use this command to connect our domain with our site.
bench setup add-domain yourdomain.com –site yoursitename
Change youdomain.com to your preferred URL which we added the A record on cloudflare or any other dns provider and change the yoursitename to your site where you want to connect the domain.
Now we will resetup the nginx configuration and restart nginx service.
bench setup nginx && sudo service nginx reload
Install packages that are important for letsencrypt SSL generation.
sudo snap install core
sudo snap refresh core
sudo snap install –classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
Now we will generate the SSL certificate by uing this command.
sudo certbot –nginx
Here type your email address where you want to receive important notices.
Type “Y” to agree with Terms and Conditions.
Again type Y and press enter.
Now type the number where your domain is showing. My domain is showing on number 1. I will type 1 and press enter.
Now access your ERPNext with your domain on your browser.
Congratulations! We have successfully installed the SSL on the ERPNext on Linux server. So, that’s all. I hope you have enjoyed my video. Do not forget to press the like button If you have not subscribed to my channel then please subscribe my channel and hit the bell icon to get the update on my latest videos.
If you want videos on any other topic then comment below. We will try our best to help you.
[ad_2]
source