ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

Setup Wildcard-SSL to a bench installed in virtualbox

I have a Multi-tenancy sites under one bench installed on VirtualBox Ubuntu server, I bought recently Wildcard-SSL certificate in a format of Pem-Chain and I want to install it for each site
the sites available is as follows:
mydomain.com
site1.mydomain.com
site2.mydomain.com
taking into consideration that I have already done the port forward, so the accountant should access the sites via for example mydomain.com:7000 and then the browser should forward to https://mydomain.com:7000
any ideas for help

If you are using Ngnix for hosting, you can use the same certificate for all sites in the conf file.

ssl_certificate   /etc/certificate/site1.pem;
ssl_certificate_key /etc/certificate/privkey-site1.pem;

Use same certificate for site2 also as it is wildcard.
ssl_certificate /etc/certificate/site1.pem;
ssl_certificate_key /etc/certificate/privkey-site1.pem;

Having said that, you need not purchase SSL certificate as letsencrypt works perfectly with ERPNext.

The problem I got error “ssl directive is deprecated” and the page didn’t open
the following are the steps I follow

bench config dns_multitenant on
bench set-ssl-certificate mydomain.com /etc/nginx/conf.d/ssl/mydomain_com.crt
bench set-ssl-key mydomain.com /etc/nginx/conf.d/ssl/mydomain.com.key
bench setup nginx
bench setup reload-nginx

Any suggestions !!

When searching I found there is command

bench setup wildcard-ssl

it is for setup wildcard SSL certificate for multi-tenant bench
any help in this