These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

Issues, Workarounds & Localization

 
  • Topic is locked indefinitely.
 

Unknown SSL protocol error in connection to api.eveonline.com:443

Author
Jen Moriarty
Republic University
Minmatar Republic
#1 - 2015-04-20 09:22:00 UTC
Hi,

I'm having this recurring problem trying to acquire my corp's StarbaseList. I've tried it from two separate hosting servies, and I keep getting SSL issues:

Host #1:
Quote:
< HTTP/1.1 200 OK

< Date: Mon, 20 Apr 2015 09:10:51 GMT

< Transfer-Encoding: chunked

* CONNECT responded chunked
< Server: Apache

<

* Proxy replied OK to CONNECT request
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* Unknown SSL protocol error in connection to api.eveonline.com:443
* Closing connection 10


Host #2:
Quote:
* About to connect() to api.eveonline.com port 443 (#0)
* Trying 87.237.39.199... * connected
* Connected to api.eveonline.com (87.237.39.199) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* NSS error -5978
* Closing connection #0
* SSL connect error


These are intermittent, so sometimes it does work.

Here's my code:

    $ch = curl_init();
   
    if(!empty($post)) {
        curl_setopt($ch, CURLOPT_POST      ,1);
        curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
    }

    curl_setopt($ch, CURLOPT_URL, $url);

    if (ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off'))
        curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
       
    //curl_setopt($ch, CURLOPT_ENCODING, 'UTF-8');
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
    curl_setopt($ch, CURLOPT_TIMEOUT, 60);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));

        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
   
    $data = curl_exec($ch);
        curl_close($ch);
    
    Return $data;


No idea what's causing this, but the fact that this sometimes works points out to it not being an actual SSL issue. Does anyone have any idea?