I'm opening my key file and it is saying that it is false and I have no idea why it that. My key looks ok when I open it with notepad. Why it's not working, I'm doing this for the first time so please excuse me if it's something obvious..
This is where I read it
// Reading private key
$fp = fopen("certs/cert.pem", "r");
$priv_key = fread($fp, 8192);
fclose($fp);
$pkeyid = openssl_get_privatekey($priv_key); // Empty
openssl_error_string()
gives me error:0906D06C:PEM routines:func(109):reason(108)
.