Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

Tags:

curl

https

ssl

I am trying to connect my remote nginx server which is configured to use ssl.

I fired a command

$curl  https://10.73.80.197:8080/ 

but after that i am getting error. Here is the whole log-

* Hostname was NOT found in DNS cache
*   Trying 10.73.80.197...
* Connected to 10.73.80.197 (10.73.80.197) port 80 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
* Closing connection 0
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
like image 240
Yogesh Jilhawar Avatar asked Sep 03 '15 10:09

Yogesh Jilhawar


People also ask

Could not initiate SSL tls connection error 140770FC SSL routines SSL23_ get_ server_ hello unknown protocol?

If you see an error like this: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol , it could be due to you typing the hostname incorrectly or the hostname is not yet tabled in your DNS. You can verify that with a simple "host" or "nslookup".


1 Answers

as explained in several other articles:

curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Curl returns "Unknown protocol"

this kind of curl error is often the result of using a web proxy over https instead of http

you should check your https_proxy env variable

if you have something like

https://myproxy.example.com:8080/

then you should change and set the following

https_proxy=http://myproxy.example.com:8080/

like image 81
Cyril Chaboisseau Avatar answered Sep 30 '22 15:09

Cyril Chaboisseau