Lines Matching refs:cert
76 bool validateCertificate(X509* const cert) in validateCertificate() argument
95 int errCode = X509_STORE_CTX_init(storeCtx, x509Store, cert, nullptr); in validateCertificate()
217 X509* cert = X509_new(); in loadCert() local
218 if (cert == nullptr) in loadCert()
226 if (PEM_read_bio_X509(certFileBio, &cert, nullptr, nullptr) == nullptr) in loadCert()
232 X509_free(cert); in loadCert()
236 return cert; in loadCert()
239 int addExt(X509* cert, int nid, const char* value) in addExt() argument
243 X509V3_set_ctx(&ctx, cert, cert, nullptr, nullptr, 0); in addExt()
252 X509_add_ext(cert, ex, -1); in addExt()
422 std::string cert = verifyOpensslKeyCert(filepath); in ensureOpensslKeyPresentAndValid() local
424 if (cert.empty()) in ensureOpensslKeyPresentAndValid()
427 cert = generateSslCertificate("testhost"); in ensureOpensslKeyPresentAndValid()
428 if (cert.empty()) in ensureOpensslKeyPresentAndValid()
434 writeCertificateToFile(filepath, cert); in ensureOpensslKeyPresentAndValid()
437 return cert; in ensureOpensslKeyPresentAndValid()
598 std::string cert = verifyOpensslKeyCert(certPath); in getSSLClientContext() local
600 if (!getSslContext(sslCtx, cert)) in getSSLClientContext()