We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7b8e5fc + 549e0fc commit f261935Copy full SHA for f261935
lib/facil/tls/fio_tls_openssl.c
@@ -423,7 +423,11 @@ static void fio_tls_build_context(fio_tls_s *tls) {
423
X509_INFO *tmp = sk_X509_INFO_value(inf, i);
424
if (tmp->x509) {
425
FIO_LOG_DEBUG("TLS adding certificate from PEM file.");
426
- SSL_CTX_use_certificate(tls->ctx, tmp->x509);
+ if (i == 0) {
427
+ SSL_CTX_use_certificate(tls->ctx, tmp->x509);
428
+ } else {
429
+ SSL_CTX_add1_chain_cert(tls->ctx, tmp->x509);
430
+ }
431
}
432
if (tmp->x_pkey) {
433
FIO_LOG_DEBUG("TLS adding private key from PEM file.");
0 commit comments