ERPNext with customised port not works with letsencrypt

installed erpnext with customised port 8090 and configure letsencrypt ssl certificate
for
https://erp.domain.com:8090 its not working in browser but
without port number the above erpnext subdomain works fine
i.e erp.domain.com:8090 with customised port with ssl not working , without mentioning port number erpnext works fine for letsencrypt ssl certificate , any clues to solve the issue to fix letsencrypt ssl certificate for erpnext subdomain with custom port

please share your nginx and supervisor config

What is the error you get with custom port?

Share more info on the error, your config files with SSL details.

ERR_SSL_PROTOCOL_ERROR

and the nginx log file says
182.65.49.30 - - [23/Feb/2021:07:23:40 +0000] “\x16\x03\x01\x02\x00\x01\x00\x01\xFC\x03\x03\xB7\xBFi\x04\xE8\x98\xB4\x1F\xCDNM8\x99R\x10\x1D]1\xB7\xC6}\x19\x01y\x91ct\x8CSVfH ao\xCF84\x96\xC08\xE2\xDA(\xB2\x91~\xDEX\x15ZC\x17a\xA2\xC6\xBCC?v\xCD\xDE\x12$\xC6\x00 \xAA\xAA\x13\x01\x13\x02\x13\x03\xC0+\xC0/\xC0,\xC00\xCC\xA9\xCC\xA8\xC0\x13\xC0\x14\x00\x9C\x00\x9D\x00/\x005\x01\x00\x01\x93ZZ\x00\x00\x00\x00\x00\x11\x00\x0F\x00\x00\x0Cerp.hashq.in\x00\x17\x00\x00\xFF\x01\x00\x01\x00\x00” 400 182 “-” “-”

@tkdhanasekar share the config files related to SSL certs.

the config files
/etc/letsencrypt/options-ssl-nginx.conf
https://pastebin.com/jY7Xd4Nj

/etc/nginx/sites-available/default
https://pastebin.com/Mks36tFU

/etc/nginx/conf.d/erpnext.conf
https://pastebin.com/x0XpW86h