Nss error 12190

curl to github.com fails with "NSS error -12190" $ curl https://github.com -v * About to connect() to github.com port 443 (#0) * Trying 192.30.255.113... connected * Connected to github.com (192.30.255.113) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * NSS error -12190 * Error in TLS handshake, trying SSLv3... > GET / HTTP/1.1 > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.3.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > Host: github.com > Accept: */* > * Connection died, retrying a fresh connect * Closing connection #0 * Issue another request to this URL: 'https://github.com' * About to connect() to github.com port 443 (#0) * Trying 192.30.255.113... connected * Connected to github.com (192.30.255.113) port 443 (#0) * TLS disabled due to previous handshake failure * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * NSS error -12286 * Closing connection #0 * SSL connect error curl: (35) SSL connect error $

Skip to navigation
Skip to main content

Red Hat Customer Portal

Infrastructure and Management

  • Red Hat Enterprise Linux

  • Red Hat Virtualization

  • Red Hat Identity Management

  • Red Hat Directory Server

  • Red Hat Certificate System

  • Red Hat Satellite

  • Red Hat Subscription Management

  • Red Hat Update Infrastructure

  • Red Hat Insights

  • Red Hat Ansible Automation Platform

Cloud Computing

  • Red Hat OpenShift

  • Red Hat CloudForms

  • Red Hat OpenStack Platform

  • Red Hat OpenShift Container Platform

  • Red Hat OpenShift Data Science

  • Red Hat OpenShift Online

  • Red Hat OpenShift Dedicated

  • Red Hat Advanced Cluster Security for Kubernetes

  • Red Hat Advanced Cluster Management for Kubernetes

  • Red Hat Quay

  • OpenShift Dev Spaces

  • Red Hat OpenShift Service on AWS

Storage

  • Red Hat Gluster Storage

  • Red Hat Hyperconverged Infrastructure

  • Red Hat Ceph Storage

  • Red Hat OpenShift Data Foundation

Runtimes

  • Red Hat Runtimes

  • Red Hat JBoss Enterprise Application Platform

  • Red Hat Data Grid

  • Red Hat JBoss Web Server

  • Red Hat Single Sign On

  • Red Hat support for Spring Boot

  • Red Hat build of Node.js

  • Red Hat build of Thorntail

  • Red Hat build of Eclipse Vert.x

  • Red Hat build of OpenJDK

  • Red Hat build of Quarkus

Integration and Automation

  • Red Hat Process Automation

  • Red Hat Process Automation Manager

  • Red Hat Decision Manager

All Products

Issue

  • curl to github.com fails with «NSS error -12190»
$ curl https://github.com -v
* About to connect() to github.com port 443 (#0)
*   Trying 192.30.255.113... connected
* Connected to github.com (192.30.255.113) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* NSS error -12190
* Error in TLS handshake, trying SSLv3...
> GET / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.3.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: github.com
> Accept: */*
> 
* Connection died, retrying a fresh connect
* Closing connection #0
* Issue another request to this URL: 'https://github.com'
* About to connect() to github.com port 443 (#0)
*   Trying 192.30.255.113... connected
* Connected to github.com (192.30.255.113) port 443 (#0)
* TLS disabled due to previous handshake failure
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* NSS error -12286
* Closing connection #0
* SSL connect error
curl: (35) SSL connect error
$ 

Environment

  • Red Hat Enterprise Linux 6
  • git
  • curl

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

Я уже пытался искать большинство вещей здесь, но, похоже, не сработало.
пытался свернуться -I -v https://secure2.lionair.co.id/lionairibe/OnlineBooking.aspx возвращает ошибку обычно я использую сервер Ubuntu и не имею никаких проблем с этим, но когда я пытался использовать centos 6.6 внезапно все мои curls to https возвращает эту ошибку как в PHP, так и даже с командной строкой Linux
признателен, если вы можете мне помочь

Ответ при попытке свернуться:

* About to connect() to secure2.lionair.co.id port 443 (#0)
*   Trying 202.79.216.183... connected
* Connected to secure2.lionair.co.id (202.79.216.183) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* NSS error -12190
* Error in TLS handshake, trying SSLv3...
> HEAD /lionairibe/OnlineBooking.aspx HTTP/1.1
> User-Agent: 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
> Host: secure2.lionair.co.id
> Accept: */*
>
* Connection died, retrying a fresh connect
* Closing connection #0
* Issue another request to this URL: 'https://secure2.lionair.co.id/lionairibe/OnlineBooking.aspx'
* About to connect() to secure2.lionair.co.id port 443 (#0)
*   Trying 202.79.216.183... connected
* Connected to secure2.lionair.co.id (202.79.216.183) port 443 (#0)
* TLS disabled due to previous handshake failure
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* NSS error -12190
* Closing connection #0
* SSL connect error
curl: (35) SSL connect error

Спасибо 🙂

0

Решение

Сервер поддерживает только TLS 1.1, т.е. без SSL 3.0, TLS 1.0 и TLS 1.2. Так что вы должны быть очень осторожны при общении с этим странным сервером. Я не знаю, поддерживает ли используемая вами версия curl необходимые параметры для ограничения протокола TLS таким образом и реализована ли эта опция для бэкэнда NSS, но вы можете попытаться применить TLS 1.1 следующим образом:

 curl  --tlsv1.1 https://secure2.lionair.co.id

Если это не помогает, вам может потребоваться обновить curl, используйте curl с другим бэкэндом (например, OpenSSL) или используйте инструменты, такие как wget.

2

Другие решения

Других решений пока нет …

Shaggy1

Posts: 26
Joined: 2014/10/19 10:51:11

connection problems using git (+TLS1.2) over HTTPS

Hi

I am using centos 6.4:
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)

uname -a
Linux lb-cam-bca-12 2.6.32-358.23.2.el6.x86_64 #1 SMP Sat Sep 14 05:32:37 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux

I am trying to clone freeCAD from github, but am getting an error related to SSL:
$ GIT_CURL_VERBOSE=1 GIT_TRACE=1 git clone https://github.com/FreeCAD/FreeCAD.git free-cad-code
12:26:19.861767 git.c:349 trace: built-in: git ‘clone’ ‘https://github.com/FreeCAD/FreeCAD.git’ ‘free-cad-code’
Cloning into ‘free-cad-code’…
12:26:20.496310 run-command.c:341 trace: run_command: ‘git-remote-https’ ‘origin’ ‘https://github.com/FreeCAD/FreeCAD.git’
* Couldn’t find host github.com in the .netrc file; using defaults
* About to connect() to github.com port 443 (#0)
* Trying 192.30.253.112… * Connected to github.com (192.30.253.112) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* NSS error -12190
* Error in TLS handshake, trying SSLv3…
> GET /FreeCAD/FreeCAD.git/info/refs?service=git-upload-pack HTTP/1.1
User-Agent: git/2.1.0
Host: github.com
Accept: */*
Accept-Encoding: gzip
Pragma: no-cache

* Connection died, retrying a fresh connect
* Expire cleared
* Closing connection #0
* Issue another request to this URL: ‘https://github.com/FreeCAD/FreeCAD.git/ … pload-pack’
* Couldn’t find host github.com in the .netrc file; using defaults
* About to connect() to github.com port 443 (#0)
* Trying 192.30.253.112… * Connected to github.com (192.30.253.112) port 443 (#0)
* TLS disabled due to previous handshake failure
* NSS error -12286
* Expire cleared
* Closing connection #0
fatal: unable to access ‘https://github.com/FreeCAD/FreeCAD.git/’: SSL connect error

From what I can gather from https://bugzilla.redhat.com/show_bug.cgi?id=1217477 and https://github.com/userify/shim/issues/25
this is a known problem, but I do not know how to get round it.

Does anyone know how I can get round this issue ?
From the above link it looks like the issue can be fixed with a patch to NSS or upgrading to a later nss version, anyone know how I can do that ?
Alternatively it looks like you can force TLSv1 by passing -1 to the curl command line, but I do not know how to tell git to do this. Anyone know if it is possible to pass curl command line options to git ?


User avatar

avij

Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: connection problems using git (+TLS1.2) over HTTPS

Post

by avij » 2018/03/15 13:06:34

Shaggy1 wrote:I am using centos 6.4:
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)

If your redhat-release says Red Hat Enterprise Linux, you are not using CentOS but RHEL. You probably have a support contract from RHEL, they will be happy to help you.

Shaggy1 wrote:From the above link it looks like the issue can be fixed [..] or upgrading to a later nss version, anyone know how I can do that?

Yes, run yum update which should upgrade your system to 6.9. There have been a number of enhancements to crypto in the most recent RHEL releases, and your problem will likely vanish when you are up to date.

For reference, I can run curl -v ‘https://github.com/FreeCAD/FreeCAD.git/ … pload-pack’ successfully on a CentOS 6.9 system. If your system complains something with that command, try upgrading.


Shaggy1

Posts: 26
Joined: 2014/10/19 10:51:11

Re: connection problems using git (+TLS1.2) over HTTPS

Post

by Shaggy1 » 2018/03/15 14:11:10

> you are not using CentOS but RHEL
Humble apologies. Very sorry about this mis-posting, we(I) are currently in transition from red-hat to centos (they pulled plug on the support contract along with the staff that used to deal with it) and my mind simply went straight to centos and didn’t clock this was an older machine.

Thank you very much for replying anyhow!!

I’ve tried the upgrade, but unfortunately that didn’t work … and will look among redhat docs/posts for a solution!



Shaggy1

Posts: 26
Joined: 2014/10/19 10:51:11

Re: connection problems using git (+TLS1.2) over HTTPS

Post

by Shaggy1 » 2018/03/15 16:13:36

> What part didn’t work, the upgrade or git after the upgrade?
The git after the upgrade

> but it should be fairly easy to turn a RHEL system into a CentOS system
Thank you very much for this information — I had no idea that it might be possible.
I’ll give this a go when I have a little more time to look at what is required — hopefully I can find a machine too test it on where it doesn’t matter too much if things go wrong.


User avatar

avij

Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: connection problems using git (+TLS1.2) over HTTPS

Post

by avij » 2018/03/15 16:35:08

OK, so, what do you have now? rpm -q git curl libcurl nss openssl should give you a list of packages that may be related to this issue.



Like this post? Please share to your friends:
  • Nsqlite3database ошибка city car driving
  • Nsock error nmap
  • Npm install canvas error
  • Not enough free disk space error
  • Not allowed to load local resource как исправить