Lines Matching refs:cert
11 $certificateGenerator->saveCaCert(__DIR__ . "/san-cert.pem");
13 $cert = "file://" . __DIR__ . "/cert.crt";
15 $sert = "file://" . __DIR__ . "/san-cert.pem";
16 $cpca = __DIR__ . "/san-cert.pem";
18 $rcrt = openssl_x509_read($cert);
21 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SSL_CLIENT));
22 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SSL_SERVER));
23 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_NS_SSL_SERVER));
24 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_SIGN));
25 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_ENCRYPT));
26 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_CRL_SIGN));
27 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_ANY));
46 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SSL_CLIENT, array($cpca)));
47 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SSL_SERVER, array($cpca)));
48 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_NS_SSL_SERVER, array($cpca)));
49 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_SIGN, array($cpca)));
50 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_ENCRYPT, array($cpca)));
51 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_CRL_SIGN, array($cpca)));
71 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SSL_CLIENT, array($cpca), $utfl));
72 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SSL_SERVER, array($cpca), $utfl));
73 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_NS_SSL_SERVER, array($cpca), $utfl));
74 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_SIGN, array($cpca), $utfl));
75 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_ENCRYPT, array($cpca), $utfl));
76 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_CRL_SIGN, array($cpca), $utfl));
77 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_ANY, array($cpca), $utfl));
97 @unlink(__DIR__ . "/san-cert.pem");