cURL not working (Error #77) for SSL connections on CentOS for non-root users

I just had a similar problem with Error#77 on CentOS7. I was missing the softlink /etc/pki/tls/certs/ca-bundle.crt that is installed with the ca-certificates RPM. ‘curl’ was attempting to open this path to get the Certificate Authorities. I discovered with: strace curl https://example.com and saw clearly that the open failed on that link. My fix was: yum … Read more

error: curl: /usr/local/lib/libcurl.so.4: no version information available (required by curl)

I also had a problem with libcurl.so.4: no version information available in installing CMAKE. I type cmake, the output is: cmake: /usr/local/lib/libcurl.so.4: no version information available (required by cmake) Segmentation fault (core dumped)` I solved this by doing the following: First, I locate the path of libcurl.so.4: locate libcurl.so.4 the result is: /home/chenjian/software/curl-7.20.0/lib/.libs/libcurl.so.4 /home/chenjian/software/curl-7.20.0/lib/.libs/libcurl.so.4.2.0 /usr/lib/x86_64-linux-gnu/libcurl.so.4 … Read more

cURL OpenSSL error error:0308010C:digital envelope routines::unsupported

Meta: this isn’t really programming or development, and would probably be better on superuser or maybe security.SX, but this is issue is likely to become more common as OpenSSL 3.0 spreads and I wanted to get the answer out. OpenSSL 3.0.x (and up) by default doesn’t support old/insecure algorithms, but until recently most software that … Read more

NSS: client certificate not found (nickname not specified)?

Try prefixing the certificate filename with “./”, or using the full path. From the curl manpage: If curl is built against the NSS SSL library then this option [–cert] can tell curl the nickname of the certificate to use within the NSS database defined by the environment variable SSL_DIR (or by default /etc/pki/nssdb). If the … Read more

Send JSON-Request to Flask via Curl [duplicate]

According to the get_json docs: [..] function will return None if the mimetype is not application/json but this can be overridden by the force parameter. So, either specify the mimetype of the incoming request to be application/json: curl localhost:5000/post -d ‘{“foo”: “bar”}’ -H ‘Content-Type: application/json’ or force JSON decoding with force=True: data = request.get_json(force=True) If … Read more