Lines Matching refs:cert
14 $certificateGenerator->saveCaCert(__DIR__ . "/san-cert.pem");
16 $cert = "file://" . __DIR__ . "/cert.crt";
18 $sert = "file://" . __DIR__ . "/san-cert.pem";
19 $cpca = __DIR__ . "/san-cert.pem";
21 $rcrt = openssl_x509_read($cert);
24 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SSL_CLIENT));
25 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SSL_SERVER));
26 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_NS_SSL_SERVER));
27 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_SIGN));
28 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_ENCRYPT));
29 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_CRL_SIGN));
30 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_ANY));
47 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SSL_CLIENT, array($cpca)));
48 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SSL_SERVER, array($cpca)));
49 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_NS_SSL_SERVER, array($cpca)));
50 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_SIGN, array($cpca)));
51 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_ENCRYPT, array($cpca)));
52 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_CRL_SIGN, array($cpca)));
70 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SSL_CLIENT, array($cpca), $utfl));
71 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SSL_SERVER, array($cpca), $utfl));
72 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_NS_SSL_SERVER, array($cpca), $utfl));
73 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_SIGN, array($cpca), $utfl));
74 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_ENCRYPT, array($cpca), $utfl));
75 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_CRL_SIGN, array($cpca), $utfl));
76 var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_ANY, array($cpca), $utfl));
94 @unlink(__DIR__ . "/san-cert.pem");