You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: too generic return code for cert name mismatch #10790
When we upgrade curl from using wolfSSL 5.9.1 to 5.9.2 in our CI jobs, the long-running test 311 now permafails. The test is called HTTPS wrong subjectAltName but right CN and does exactly that: verifies that the handshake is denied when the certificate has the correct name in the CN field but incorrect in subjectAltName field.
The failed job can be seen in the PR trying to do this bump: curl/curl#22160
Starting in this version, wolfSSL now returns ASN_PARSE_E for this error. To me, this seems a little too generic and slightly wrong. This isn't really an ASN1 error. The ASN1 is to my knowledge correct. It just holds data that mismatches.
Reproduction steps
Build a recent curl and run its test 311 with wolfSSL 5.9.2
Activity
embhorn commentedon Jun 26, 2026
Hi @bagder
I added a PR (#10793) to address this. Please confirm the fix conforms to the curl test.
Thanks,
@embhorn
vszakats commentedon Jun 28, 2026
@embhorn Hi Eric, I confirm the fix works, and makes curl test pass:
https://github.com/curl/curl/actions/runs/28318383376/job/83895769716?pr=22204
https://github.com/curl/curl/actions/runs/28318383376/job/83895769752?pr=22204
https://github.com/curl/curl/actions/runs/28318383373/job/83895922325?pr=22204
Ref: curl/curl#22204
Thank you for fixing.
GHA: update dependency wolfSSL/wolfssl to v5.9.2, apply upstream patch