How/where to get .key and .pem files.
skorunka opened this issue · comments
I have got a p12 certificate file. How I can use this file with this EET implementation? Or does this file contains .key and .pem files?
openssl_pkcs12_read(file_get_contents($p12), $certs, $password);
$error = openssl_error_string();
if(!$error) {
file_put_contents('key.pem', $certs['cert']);
file_put_contents('key.key', $certs['pkey']);
}
thank you.