Products Resources Support About Us

Curl: (35) Unknown SSL protocol error in connection to 192.168.48.41:7050

curl

#1

I have an API server running in my z/OS 2.3. If I use curl from OMVS to test the API I get the following error:

/usr/lpp/ported/curl/bin>curl https://192.168.48.41:7050/zosConnect/apis -v -k --user ‘uuuuuuuu:pppppppp’

  • Trying 192.168.48.41…
  • TCP_NODELAY set
  • Connected to 192.168.48.41 (192.168.48.41) port 7050 (Ñ0)
  • ALPN, offering h2
  • ALPN, offering http/1.1
  • Cipher selection: ALL:]EXPORT:]EXPORT40:]EXPORT56:]aNULL:]LOW:]RC4:@STRENGTH
  • TLSv1.2 (OUT), TLS header, Certificate Status (22):
  • TLSv1.2 (OUT), TLS handshake, Client hello (1):
  • Unknown SSL protocol error in connection to 192.168.48.41:7050
  • Curl_http_done: called premature == 1
  • stopped the pause stream]
  • Closing connection 0
    curl: (35) Unknown SSL protocol error in connection to 192.168.48.41:7050

But if I use the curl in my Linux laptop, the response is correct:

curl https://192.168.48.41:7050/zosConnect/apis -v -k --user ‘uuuuuuuu:pppppppp’

  • About to connect() to 192.168.48.41 port 7050 (#0)
  • Trying 192.168.48.41…
  • Connected to 192.168.48.41 (192.168.48.41) port 7050 (#0)
  • Initializing NSS with certpath: sql:/etc/pki/nssdb
  • skipping SSL peer certificate verification
  • SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
  • Server certificate:
  • subject: CN=ZOSA-Server_CICS-CICT_ZCEE,O=IBM,ST=MADRID,C=ES
  • start date: ene 10 23:00:00 2018 GMT
  • expire date: mar 03 22:59:59 2020 GMT
  • common name: ZOSA-Server_CICS-CICT_ZCEE
  • issuer: CN=Server Infraestructura IBM (ZOSAB) CA,OU=Server z/OS CA - ZOSAB,O=IBM,ST=MADRID,C=ES
  • Server auth using Basic with user ‘uuuuuuuu’

GET /zosConnect/apis HTTP/1.1
Authorization: Basic UDcwMDYyOm1hJDkzJG1h
User-Agent: curl/7.29.0
Host: 192.168.48.41:7050
Accept: /

< HTTP/1.1 200 OK
< X-Powered-By: Servlet/3.1
< Content-Type: application/json
< Content-Language: en-US
< Content-Length: 392

Whan am I doing wrong?
Can you Help me?