Step 1: Navigate to SSL certificate locations from /etc/nginx/conf.d/default.conf and find the location of SSL certificates as follows:
ssl_certificate /var/cpanel/ssl/cpanel/mycpanel.pem;
ssl_certificate_key /var/cpanel/ssl/cpanel/mycpanel.pem;
When running curl https://english92.com:3001, curl will complain
curl: (60) SSL: no alternative certificate subject name matches target host name 'english92.com'
Simple run curl -k https://english92.com:3001 to disregard this issue.
const privateKey = fs.readFileSync('/var/cpanel/ssl/cpanel/mycpanel.pem;', 'utf8');
const certificate = fs.readFileSync('/var/cpanel/ssl/cpanel/mycpanel.pem;', 'utf8');
# NET::ERR_CERT_COMMON_NAME_INVALID
const privateKey = fs.readFileSync('/etc/apache2/conf.d/ssl.key/server.key', 'utf8');
const certificate = fs.readFileSync('/etc/apache2/conf.d/ssl.crt/server.crt', 'utf8');
# ERR_CERT_AUTHORITY_INVALID
const privateKey = fs.readFileSync('/home/english92/ssl/keys/af00f_ca909_2509ada926ee608ed1be320e970e6b27.key', 'utf8');
const certificate = fs.readFileSync('/home/english92/ssl/certs/english92_com_af00f_ca909_1725423321_af048e5ac4e364e04c8633e37335db76.crt', 'utf8');
# Working!