You are not logged in.

#1 2015-12-16 21:16:14

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

[curl] command-line pastebin client stopped working

Hi ! When wanting to use pastebin client listed in the wkiki from the console, only one of the three services worked (https://ptbt.pw). https://sprunge.us and https://ix.io gave the following curl error

curl: (35) Unknown SSL protocol error in connection to sprunge.us:443 

Rendering kev's sprunge tool --which seems to use hon ssl by default-- useless.

Reverted down to curl up to v-7.43.0-1 with no effect so I think it's a different issue than the curl one mentionned here [SOLVED] Unknown SSL protocol error in connection.

Detailed output with the three services:

$ curl -v -F c=@- https://sprunge.us < grub.cfg 

* Rebuilt URL to: https://sprunge.us/
*   Trying 216.239.32.21...
* Connected to sprunge.us (216.239.32.21) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* Unknown SSL protocol error in connection to sprunge.us:443 
* Closing connection 0
curl: (35) Unknown SSL protocol error in connection to sprunge.us:443

$ curl -v -F c=@- http://sprunge.us < grub.cfg   

* Rebuilt URL to: http://sprunge.us/
*   Trying 216.239.32.21...
* Connected to sprunge.us (216.239.32.21) port 80 (#0)
> POST / HTTP/1.1
> Host: sprunge.us
> User-Agent: curl/7.43.0
> Accept: */*
> Content-Length: 34428
> Expect: 100-continue
> Content-Type: multipart/form-data; boundary=------------------------db0a26bd46c314f9
> 
< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Content-Type: text/html; charset=utf-8
< Cache-Control: no-cache
< Vary: Accept-Encoding
< Date: Wed, 16 Dec 2015 19:31:59 GMT
< Server: Google Frontend
< Accept-Ranges: none
< Transfer-Encoding: chunked
< 
http://sprunge.us/gdLB
* Connection #0 to host sprunge.us left intact

With ssl v3
$ curl -3 -v -F c=@- https://ix.io < grub.cfg   

* Rebuilt URL to: https://ix.io/
*   Trying 66.172.11.73...
* connect to 66.172.11.73 port 443 failed: Connexion refusée
* Failed to connect to ix.io port 443: Connexion refusée
* Closing connection 0
curl: (7) Failed to connect to ix.io port 443: Connexion refusée

$ curl -v -F c=@- https://ptpb.pw < grub.cfg     

* Rebuilt URL to: https://ptpb.pw/
*   Trying 104.130.253.219...
* Connected to ptpb.pw (104.130.253.219) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*        subject: C=US; CN=www.ptpb.pw; emailAddress=webmaster@ptpb.pw
*        start date: 2015-12-01 17:43:07 GMT
*        expire date: 2016-12-01 20:02:31 GMT
*        subjectAltName: ptpb.pw matched
*        issuer: C=IL; O=StartCom Ltd.; OU=Secure Digital Certificate Signing; CN=StartCom Class 1 Primary Intermediate Server CA
*        SSL certificate verify ok.
> POST / HTTP/1.1
> Host: ptpb.pw
> User-Agent: curl/7.43.0
> Accept: */*

Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#2 2016-03-04 08:40:35

kevr
Member
From: CA, USA
Registered: 2010-05-01
Posts: 24
Website

Re: [curl] command-line pastebin client stopped working

The reason for this is that ptbt is the only service here that hosts an https webpage. Neither sprunge.us nor ix.io host an https version of their webpage, so curl definitely fails with https on those two.


Kevin Morris <kevr@0cost.org>

Hangs out in #archlinux-aurweb. Loves the AUR.

Offline

Board footer

Powered by FluxBB