Hi Michael,
I upgraded to the latest version of curl from your website but still getting the same errors. What's interesting is that using another version curl (written by another developer) works fine.
3-rd party working curl hsdev01@hsdev@/hs/admin/test>/opt/TWWfsw/curl715/bin/curl -v -i -k -H "Content-Type: text/xml" -d @ortho.hl7
https://MSPATH-ADT-TEST-NYU-ELB-46670477.us-east-1.elb.amazonaws.com:5991 -o out.txt
* About to connect() to MSPATH-ADT-TEST-NYU-ELB-46670477.us-east-1.elb.amazonaws.com port 5991
* Trying 34.195.27.140... connected
* Connected to MSPATH-ADT-TEST-NYU-ELB-46670477.us-east-1.elb.amazonaws.com (34.195.27.140) port 5991
* found 59 certificates in /opt/TWWfsw/curl715/share/ca-bundle.crt
* server certificate verification FAILED
* common name: *.mspaths.org (does not match 'MSPATH-ADT-TEST-NYU-ELB-46670477.us-east-1.elb.amazonaws.com')
* certificate public key: RSA
* certificate version: #3
* subject: C=US,ST=Massachusetts,L=Cambridge,O=Biogen Inc,CN=*.mspaths.org
* start date: Thu, 31 Mar 2016 00:00:00 GMT
* expire date: Sat, 31 Mar 2018 23:59:59 GMT
* issuer: C=US,O=GeoTrust Inc.,CN=GeoTrust SSL CA - G3
* compression: NULL
* cipher: AES 128 CBC
* MAC: SHA
> POST / HTTP/1.1
> User-Agent: curl/7.15.1 (powerpc-ibm-aix5.3.0.0) libcurl/7.15.1 GnuTLS/1.2.9 zlib/1.1.4 libidn/0.5.20
> Host: MSPATH-ADT-TEST-NYU-ELB-46670477.us-east-1.elb.amazonaws.com:5991
> Accept: */*
> Content-Type: text/xml
> Content-Length: 119
>
> MSH|^~\&|CURL|HJD|||20140711132952||ADT^A04|103568|T|2.3|LFISH^JACOB^||||||||||||||||||||||||||||||||||||20140711132951HTTP/1.1 200 OK
< Content-Type: text/html
< Content-Length: 97
< CACHE-CONTROL: no-cache
< PRAGMA: no-cache
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 97 0 97 0 0 497 0 --:--:-- --:--:-- --:--:-- 24250Connection #0 to host MSPATH-ADT-TEST-NYU-ELB-46670477.us-east-1.elb.amazonaws.com left intact
* Closing connection #0
Now sending with 'AIX' curl
hsdev01@hsdev@/hs/admin/test>curl -v -i -k -H "Content-Type: text/xml" -d @ortho.hl7
https://MSPATH-ADT-TEST-NYU-ELB-46670477.us-east-1.elb.amazonaws.com:5991 -o out.txt
* Rebuilt URL to:
https://MSPATH-ADT-TEST-NYU-ELB-46670477.us-east-1.elb.amazonaws.com:5991/* Trying 52.207.145.201...
* TCP_NODELAY set
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to MSPATH-ADT-TEST-NYU-ELB-46670477.us-east-1.elb.amazonaws.com (52.207.145.201) port 5991 (#0)
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* TLSv1.2 (OUT), TLS Unknown, Certificate Status (22):
} [5 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* Unknown SSL protocol error in connection to MSPATH-ADT-TEST-NYU-ELB-46670477.us-east-1.elb.amazonaws.com:5991
* Curl_http_done: called premature == 1
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0
curl: (35) Unknown SSL protocol error in connection to MSPATH-ADT-TEST-NYU-ELB-46670477.us-east-1.elb.amazonaws.com:5991