wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

Fix X509 load locations to handle PEM files with multiple certs

Open ColtonWilley opened this issue 6 months ago • 2 comments

Description

wolfSSL_X509_load_locations() previously did not handle PEM files with multiple certs in one file, only the first cert would be loaded. Modify wolfSSL_X509_load_locations() to fix this by using existing logic in x509.c to loop over the PEM headers and load each item, cert or CRL.

Fixes zd 19835

Checklist

  • [x] added tests

ColtonWilley avatar Jun 06 '25 00:06 ColtonWilley

Retest this please.

Found unhandled hudson.remoting.RequestAbortedException exception: java.io.IOException: Unexpected EOF

ColtonWilley avatar Jun 06 '25 17:06 ColtonWilley

@ColtonWilley please rebase to run all the latest tests.

julek-wolfssl avatar Jul 07 '25 14:07 julek-wolfssl