Lines Matching defs:cert
37 lwsl_notice("no client cert required\n");
44 lwsl_notice("%s: vh %s requires client cert %d\n", __func__, vh->name,
92 lwsl_err("%s: vhost %s matches SNI but no valid cert\n",
106 const char *cert, const char *private_key,
115 if ((!cert || !private_key) && (!mem_cert || !mem_privkey)) {
120 n = (int)lws_tls_generic_cert_checks(vhost, cert, private_key);
138 * the rights to read our own cert + key we saved.
143 * The passed memory-buffer cert image is in DER, and the
146 cert = NULL;
149 if (lws_tls_alloc_pem_to_der_file(vhost->context, cert, mem_cert,
151 lwsl_err("couldn't find cert file %s\n", cert);
159 lwsl_err("Problem loading cert\n");
299 lwsl_notice("%s: client cert CN '%s'\n",
302 lwsl_info("%s: couldn't get client cert CN\n",
354 * mbedtls doesn't support SAN for cert creation. So we use a known-good
355 * tls-sni-01 cert from OpenSSL that worked on Let's Encrypt, and just replace
368 /* addition: v3 cert (+5 bytes)*/
457 uint8_t *buf = lws_malloc((unsigned int)buflen, "tmp cert buf"), *p = buf, *pkey_asn1;
522 /* hash the cert plaintext */
558 lwsl_err("%s: generated cert failed to load 0x%x\n",