Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

curl nss error -5938

Tags:

linux

curl

I am trying one curl command on different servers. One is working and the other one is reporting "nss error -5938".

Server1:

  1. OS:

    Linux 4.1.12-61.1.10.el6uek.x86_64 x86_64 x86_64 x86_64 GNU/Linux

  2. 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

  3. 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:

  1. 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

  1. 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

  1. 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!

like image 812
Anne Liu Avatar asked Feb 17 '17 12:02

Anne Liu


People also ask

What is NSS error cURL?

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 SSL connection error?

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.


1 Answers

Thanks all for the help! Finally I found the solution that using the command like curl --tlsv1.2

like image 116
Anne Liu Avatar answered Sep 24 '22 23:09

Anne Liu