Buenas,
tengo este pequeño código para pasar el certificado a pem, pero sigue sin funcionarme.
Código:
$data = file_get_contents($dir_cert);
openssl_pkcs12_read($data, $certs, $certPassword);
$publicChain = array($certs['cert']);
if (!empty($certs['extracerts'])) {
$publicChain = array_merge($publicChain, $certs['extracerts']);
}
$privateKey = openssl_pkey_get_private($certs['pkey']);
Paso la variable $publicChain
Muchas gracias!!
Cita:
Empezado por bilbur
Pasa el certificado a .pem
En el envío a GIP o BAtUZ hay que identificarse, pero no firmar
El certificado ha de estar tb instalado en el navegador (creo)
El .pem no requiere pass
Si necesitas el "como" tengo un apaño para importar certificados pfx y pasarlos a pem
Ya dices
|