I got this error
'bind *:443' : unable to load SSL certificate from PEM file '/etc/ssl/private/https-cert.pem'
but the file location is correct.
$ sudo ls -l /etc/ssl/private/https-cert.pem
-rwxrwxrwx 1 root root 1660 Aug 27 12:56 /etc/ssl/private/https-cert.pem
My PEM File
-----BEGIN CERTIFICATE-----
MIICCjCCAXMCFFVlEFkJOqOR70jCfoTjeYUjghgzMA0GCSqG....
-----END CERTIFICATE-----
-----BEGIN RSA PRIVATE KEY-----
MIICXgIBAAKBgQDPyhixafaLSWhGlvYqKYslqUp3j8cF2RHx....
-----END RSA PRIVATE KEY-----
I've also tried all the methods in this link: haproxy - unable to load SSL private key from PEM file, but still having problems.
Please help me, I'm desperate to fix it.