#33020·openssl

SSL_load_client_CA_file ignores TRUSTED CERTIFICATE PEM blocks

Author: abzalovCreated Sep 28, 2026Updated Sep 28, 2026
Labelsissue: bug report

SSL_load_client_CA_file() does not extract a subject name from a PEM file containing a valid -----BEGIN TRUSTED CERTIFICATE----- block. The error queue reports "error:0480006C:PEM routines::no start line".

The function is intended to return a list of certificate subject names for use as the client CA list. The auxiliary trust attributes are not needed for that purpose, but the certificate's subject should still be available.

OpenSSL version: OpenSSL 3.6.0 1 Oct 2025 (Library: OpenSSL 3.6.0 1 Oct 2025) built on: Wed Oct 8 20:29:58 2025 UTC platform: VC-WIN64A options: bn(64,64) compiler: cl /Z7 /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo /O2 -DL_ENDIAN -DOPENSSL_PIC -D"OPENSSL_BUILDING_OPENSSL" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"NDEBUG" -D_WINSOCK_DEPRECATED_NO_WARNINGS -D_WIN32_WINNT=0x0502 Platform: Windows