I am trying one curl command on different servers. One is working and the other one is reporting "nss error -5938".
Server1:
OS:
Linux 4.1.12-61.1.10.el6uek.x86_64 x86_64 x86_64 x86_64 GNU/Linux
CURL -V:
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2 Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
Command Running Status:Error
Content-Type: application/x-www-form-urlencoded;charset=UTF-8 HTTP/1.0 200 Connection established HTTP/1.0 200 Connection established
- Proxy replied OK to CONNECT request
- Initializing NSS with certpath: sql:/etc/pki/nssdb
- CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none
- NSS error -5938
- Closing connection #0
- SSL connect error curl: (35) SSL connect error
Server2:
- OS:
Linux 412c25016c7b 4.1.12-37.5.1.el7uek.x86_64 #2 SMP Thu Jun 9 16:01:20 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux
- CURL -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2 Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
- Command Running Status: Without Error
Could you please help give some suggestions on how to make server1 work with curl command? Thank you so much!
Isn't it frustrating if your cURL request returns an NSS error 8179? Usually, this error occurs when the SSL certificate chain file is incomplete. Moreover, it causes the curl request to fail. At Bobcares we often get requests to fix cURL errors, as a part of our Server Management Services.
What is an SSL certificate error? An SSL certificate error occurs when a web browser can't verify the SSL certificate installed on a site. Rather than connect users to your website, the browser will display an error message, warning users that the site may be insecure.
Thanks all for the help! Finally I found the solution that using the command like curl --tlsv1.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With