Home Featured Installing SSL Certificate on your ERPNext Instance

Installing SSL Certificate on your ERPNext Instance

by karani

You will need to have SSL certificate installed on your instance to keep users of your system safe online. In Frappe Framework or ERPNext, this is a simple process.

Prerequisites

  1. You need to have a DNS Multitenant Setup
  2. Your site should be accessible via a valid domain
  3. You need root permissions on your server
  4. You need a valid certificate generated through a trusted Certificate Authority or a Self-Signed Certificate.

Steps to Install SSL

Install snapd on your machine

sudo apt install snapd

Update snapd

sudo snap install core; sudo snap refresh core

Remove existing installations of certbot

sudo apt-get remove certbot

Install certbot

sudo snap install --classic certbot

sudo ln -s /snap/bin/certbot /usr/bin/certbot

For one-step automatic ssl installation

sudo certbot --nginx

If you prefer manual installation,. do the following:

sudo certbot certonly --nginx

Certbot packages on your system come with a cron job or systemd timer that will renew your certificates automatically before they expire. So no further steps are required. If necessary, you can test automatic renewal for your certificates by running this command:

sudo certbot renew --dry-run

Wish you all the best.

 

 

You may also like

3 comments

mykeyasar September 17, 2023 - 7:42 pm

Running this has solved it,
pip install -U pyOpenSSL

mykeyasar September 17, 2023 - 7:41 pm

running this solved it,
pip install -U pyOpenSSL

mykeyasar September 17, 2023 - 7:24 pm

Getting this error while ssl installation,

Traceback (most recent call last):
File “/usr/local/bin/certbot”, line 5, in
from certbot.main import main
File “/usr/local/lib/python3.10/dist-packages/certbot/main.py”, line 6, in
from certbot._internal import main as internal_main
File “/usr/local/lib/python3.10/dist-packages/certbot/_internal/main.py”, line 21, in
import josepy as jose
File “/usr/local/lib/python3.10/dist-packages/josepy/__init__.py”, line 40, in
from josepy.json_util import (
File “/usr/local/lib/python3.10/dist-packages/josepy/json_util.py”, line 14, in
from OpenSSL import crypto
File “/usr/lib/python3/dist-packages/OpenSSL/__init__.py”, line 8, in
from OpenSSL import crypto, SSL
File “/usr/lib/python3/dist-packages/OpenSSL/crypto.py”, line 3279, in
_lib.OpenSSL_add_all_algorithms()
AttributeError: module ‘lib’ has no attribute ‘OpenSSL_add_all_algorithms’

Leave a Comment