PHP » PYTHON |
login |
register |
about
|
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); ?> openssl_x509_read(PHP 4 >= 4.0.6, PHP 5) openssl_x509_read — Parse an X.509 certificate and return a resource identifier for it Descriptionopenssl_x509_read() parses the certificate supplied by x509certdata and returns a resource identifier for it. Parameters
Return ValuesReturns a resource identifier on success, or FALSE on failure. |
more
Recently updated
more
Most requested
more
Last requests
|