I am trying to setup ssl properly. I’ve used the following instructions:
The changes do not affect anything on erpnext.
So calling http:// will still be unsecured and does not redirect to https. Of course, I did not even come to this point, since the https-version does not work at all.
Step 1: After configuring site_config.json like this
$ cd frappe-bench/sites/{{site_name}}
Add the following two lines to your site_config.json
"ssl_certificate": "/etc/letsencrypt/live/example.com/fullchain.pem",
"ssl_certificate_key": "/etc/letsencrypt/live/example.com/privkey.pem"
Step 2: On multi-tenant environment by
bench config dns_multitenant on
Step 3: Regenerate the nginx configuration followed by nginx restart
I don’t know why, but in my /etc/nginx/conf.d/frappe.conf both server entries were listening to port 443. After changing the first one to 80 it worked.
The error ssl_error_rx_record_too_long issue only occurs in Mozilla Firefox. Even if other browsers could have variations of the issue, you probably won’t encounter it when using them. For instance, it states that the website you are attempting to visit is unavailable “because the authenticity of the received data could not be verified.”
There can be many different methods for the error to be solved such as:-