PYTHON openssl_x509_read

is this article helpful?
|
Python replacement for PHP's openssl_x509_read [ edit | history ]
Example:
import OpenSSL
cert = OpenSSL.crypto.load_pkcs12(open('acp_test_sign.pfx').read(), passphrase='000000')
cert_info = cert.get_certificate() #like openssl_x509_read


<?php
openssl_pkcs12_read(file_get_contents('acp_test_sign.pfx'), $certs, 000000);
$cert_text = $certs ['cert'];
$cert_info = openssl_x509_read($cert_text);
?>

PHP openssl_x509_read

PHP original manual for openssl_x509_read [ show | php.net ]

openssl_x509_read

(PHP 4 >= 4.0.6, PHP 5)

openssl_x509_readParse an X.509 certificate and return a resource identifier for it

Description

resource openssl_x509_read ( mixed $x509certdata )

openssl_x509_read() parses the certificate supplied by x509certdata and returns a resource identifier for it.

Parameters

x509certdata

Return Values

Returns a resource identifier on success, or FALSE on failure.