If set to 'all', all errors are ignored. SSL handshake is not aborted if an
error is ignored.
+ A session established with an ignored verification error cannot be resumed.
+
ca-sign-file <cafile>
This setting is only available when support for OpenSSL was built in. It
designates a PEM file containing both the CA certificate and the CA private
If set to 'all', all errors are ignored. SSL handshake is not aborted if an
error is ignored.
+ A session established with an ignored verification error cannot be resumed.
+
crt-list <file>
This setting is only available when support for OpenSSL was built in. It
designates a list of PEM file with an optional ssl configuration and a SNI
is aborted, regardless of the 'verify' option, unless the error code exactly
matches one of those listed with 'ca-ignore-err' or 'crt-ignore-err'.
+ A session whose client certificate verification failed cannot be resumed,
+ even if the error was ignored with 'ca-ignore-err' or 'crt-ignore-err'.
+ Sessions without verification errors remain resumable.
+
5.2. Server and default-server options
------------------------------------
return ok;
}
+ /* The verification failed: don't let this session be resumed. The
+ * verify callback doesn't run on a resumed session, so ssl_c_err,
+ * ssl_c_ca_err and ssl_c_ca_err_depth would read X509_V_OK. The
+ * "ca-ignore-err" and "crt-ignore-err" keywords don't change this,
+ * an ignored error also prevents the session from being resumed.
+ * Not applied to wolfSSL, which ignores the session id context.
+ */
+ {
+ SSL_SESSION *sess = SSL_get_session(ssl);
+
+ if (sess)
+ SSL_SESSION_set1_id_context(sess, (const unsigned char *)"", 0);
+ }
+
/* Keep a reference to the client's certificate in order to be able to
* dump some fetches values in a log even when the verification process
* fails. */