-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: curl: (35) SSL_connect failed with error -140: ASN parsing error, invalid input #7844
Comments
you can find a curl built with master as base here: https://github.com/ZoeyVid/curl-quic/actions/runs/10287471865 (the "artifacts" Artifact), and no building with master as base still does not work |
Thanks @Zoey2936 |
ok, until it is fixed I will use v5.7.0 |
Does the certificate have a negative or zero serial number? Those are treated as errors in wolfSSL. |
not sure... |
so the current solution would be CFLAGS="-DWOLFSSL_NO_ASN_STRICT"? |
I tried but still encounter the same error, I don't use curl, and using wolfssl as library, the code is hosted on gitlab repository |
I tried a workaround mentioned by @Zoey2936 # cleanup previous build
make clean
git ls-files -i -o --exclude-standard | xargs rm -rf
# setup, build and install
./autogen.sh
./configure --enable-sys-ca-certs
make
sudo make install but I still got the is there a way to check wolfssl library version? just to make sure I've compiled and used the appropriate version |
Woops, I made a mistake. I didn't aware that I've installed wolfssl (implicitly) from package manager, it might be linked to the library that provided by package manager instead of newly build one if I run I found ldd command is useful for this purposes:
but it seems it not linked to the path where I specify it with -L alright, I copy the shared library to inline it with c source code, to make it using current dir like: trying with export LD_LIBRARY_PATH=. before execute the binary, the output of
it print same goes for |
nevermind, using the suggestion mentioned by @Zoey2936 actually works, I just need to make sure that the appropriate compiled library is indeed loaded, and btw, |
I also ran into this, funnily enough also when trying to reach api.telegram.org. Can confirm that building with -DWOLFSSL_NO_ASN_STRICT added to my cflags fixed it. |
I just realize |
Contact Details
[email protected]
Version
v5.7.2-stable
Description
curl https://api.telegram.org
curl: (35) SSL_connect failed with error -140: ASN parsing error, invalid input
as errorReproduction steps
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: