2016-08-02 146 views
0

我ssh到我的Openshift應用程序,讓POST請求(以MLAB數據庫MongoDB的服務器)SSL錯誤:與捲曲這樣的捲曲在Openshift

curl --trace -s -H "Content-Type: application/json" -X POST -d '{"m":"hihihi","t":"category","tid":"393"}' https://api.mlab.com/api/1/databases/babi/collections/massrequest?apiKey=CvI9xC12d4dgjxTncXLz_y-PqNhqwP7RE 

追蹤結果表明:

== Info: About to connect() to api.mlab.com port 443 (#0) 
== Info: Trying 54.144.240.132... == Info: connected 
== Info: Connected to api.mlab.com (54.144.240.132) port 443 (#0) 
== Info: Initializing NSS with certpath: sql:/etc/pki/nssdb 
== Info: CAfile: /etc/pki/tls/certs/ca-bundle.crt 
    CApath: none 
== Info: NSS error -12286 
== Info: Closing connection #0 
== Info: SSL connect error 
curl: (35) SSL connect error 

我不知道爲什麼我無法連接到這個POST請求的mLab API。有沒有人像我一樣得到這個問題?

回答

0

這很可能是捲曲版本。在我的OpenShift的帳戶,我看到它是很老:

[mydomain.com [...]]\> curl --version 
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.18 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2 
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp 
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz 

在這裏看到了同樣的問題:curl: (35) SSL connect error