openssl_x509_checkpurpose
openssl_x509_checkpurpose
(PHP 4 >= 4.0.6, PHP 5, PHP 7)
openssl_x509_checkpurpose — Verifies if a certificate can be used for a particular purpose
Description
int openssl_x509_checkpurpose ( mixed $x509cert , int $purpose [, array $cainfo = array() [, string $untrustedfile ]] )
openssl_x509_checkpurpose() examines a certificate to see if it can be used for the specified purpose
.