Home
last modified time | relevance | path

Searched refs:cert (Results 1 – 8 of 8) sorted by last modified time

/unit/test/
H A Dconftest.py549 for cert in certs:
551 url='/certificates/' + cert,
H A Dtest_tls.py21 "tls": {"certificate": cert},
88 def ca(self, cert='root', out='localhost'): argument
206 self.add_tls(cert='new')
273 cert = chain[0]
305 self.ca(cert='root', out='int')
306 self.ca(cert='int', out='end')
334 self.add_tls(cert='end')
358 self.add_tls(cert='int')
383 self.add_tls(cert='end-int')
419 chain.write(cert.read())
[all …]
H A Dtest_tls_sni.py23 def add_tls(self, cert='default'): argument
25 {"pass": "routes", "tls": {"certificate": cert}},
282 def check_certificate(cert): argument
284 {"pass": "routes", "tls": {"certificate": cert}},
/unit/src/
H A Dnxt_conf_validation.c2283 nxt_conf_value_t *cert; in nxt_conf_vldt_certificate_element() local
2292 cert = nxt_cert_info_get(&name); in nxt_conf_vldt_certificate_element()
2294 if (cert == NULL) { in nxt_conf_vldt_certificate_element()
H A Dnxt_openssl.c80 static nxt_uint_t nxt_openssl_cert_get_names(nxt_task_t *task, X509 *cert,
454 X509 *cert, *ca; local
461 cert = NULL;
472 cert = PEM_read_bio_X509_AUX(bio, NULL, NULL, NULL);
473 if (cert == NULL) {
477 if (SSL_CTX_use_certificate(ctx, cert) != 1) {
481 if (!single && nxt_openssl_cert_get_names(task, cert, conf, mp) != NXT_OK) {
538 X509_free(cert);
849 nxt_openssl_cert_get_names(nxt_task_t *task, X509 *cert, nxt_tls_conf_t *conf, argument
863 alt_names = X509_get_ext_d2i(cert, NID_subject_alt_name, NULL, NULL);
[all …]
H A Dnxt_controller.c1633 nxt_cert_t *cert; in nxt_controller_process_cert() local
1695 cert = nxt_cert_mem(task, &c->read->mem); in nxt_controller_process_cert()
1696 if (cert == NULL) { in nxt_controller_process_cert()
1700 ret = nxt_cert_info_save(&name, cert); in nxt_controller_process_cert()
1702 nxt_cert_destroy(cert); in nxt_controller_process_cert()
H A Dnxt_cert.c61 nxt_cert_t *cert; in nxt_cert_mem() local
73 return cert; in nxt_cert_mem()
81 nxt_cert_t *cert; in nxt_cert_fd() local
93 return cert; in nxt_cert_fd()
115 if (cert == NULL) { in nxt_cert_bio()
247 cert->chain[cert->count++] = x509; in nxt_cert_bio()
259 if (cert->count == 0) { in nxt_cert_bio()
264 return cert; in nxt_cert_bio()
268 nxt_cert_destroy(cert); in nxt_cert_bio()
314 nxt_free(cert); in nxt_cert_destroy()
[all …]
H A Dnxt_cert.h14 void nxt_cert_destroy(nxt_cert_t *cert);
17 nxt_int_t nxt_cert_info_save(nxt_str_t *name, nxt_cert_t *cert);