Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Oreamnos Amric
Z3R0 RETURN MINING INC. Illusion of Solitude
11
|
Posted - 2012.10.18 12:07:00 -
[1] - Quote
Since CCP disabled http access to the EVE API, SMF with TEA has stopped working properly. This is because there are hard coded URLs in the TEA module rather than obeying the configuration setting.
To fix this edit TEAC.php lines 8, 154 and 585 and change
Quote:$this -> server = 'http://api.eve-online.com';
to
Quote:$this -> server = 'https://api.eveonline.com';
I don't think this is essential but it would be worth changing TEA.php line 103 as well
Quote:$dsets['tea_api_server'] = 'http://api.eve-online.com';
becomes
Quote:$dsets['tea_api_server'] = 'https://api.eveonline.com';
Finally, make sure you change the setting inside SMF under Admin -> Configuration -> Temars EVE API -> Settings Change the "Server to get API data from" to be 'https://api.eveonline.com'.
Hope that helps someone |
ZeusCommander
Black Lotus Property Management Ethereal Dawn
0
|
Posted - 2012.10.18 15:19:00 -
[2] - Quote
Much <3
Worked a treat! |
Bumse
Black Flag Operations The Kadeshi
23
|
Posted - 2012.10.18 17:54:00 -
[3] - Quote
Worked like a charm. Thanks for posting fix! Bring EVE into the 21st century, add some basic chat features IRC-clients have had since the beginning of the 1990's. Get proper chat hilighting into EVE! https://forums.eveonline.com/default.aspx?g=posts&t=163626&p=2 |
Norian Lonark
Black Thorne Corporation Black Thorne Alliance
34
|
Posted - 2012.10.19 09:31:00 -
[4] - Quote
Thank you very much for posting the fix, its much appreciated |
Rickard Pickman
Deep Core Mining Inc. Caldari State
0
|
Posted - 2012.10.19 10:11:00 -
[5] - Quote
Hmmm. My server rejects the wildcard certificate for some reason. I can view from my browser fine but even with these changes the certificate for the API site gives an error on my server and the XML is not downloaded.
Why CCP has to fu*k with things that work perfectly well is beyond me tbh. |
Shin Chogan
Blueprint Haus Get Off My Lawn
2
|
Posted - 2012.10.19 10:48:00 -
[6] - Quote
Rickard Pickman wrote:Hmmm. My server rejects the wildcard certificate for some reason. I can view from my browser fine but even with these changes the certificate for the API site gives an error on my server and the XML is not downloaded.
Why CCP has to fu*k with things that work perfectly well is beyond me tbh.
Not sure if it is in the original ... ( I've patched the hell out of TEA :) ) but make sure there is :
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
somewhere in the function get_site_curl in TEAC.php ... in my version it is line 363
it may help ... may not for that matter but it is worth checking :) |
Oreamnos Amric
Z3R0 RETURN MINING INC. Illusion of Solitude
12
|
Posted - 2012.10.19 12:13:00 -
[7] - Quote
Rickard Pickman wrote:Hmmm. My server rejects the wildcard certificate for some reason. I can view from my browser fine but even with these changes the certificate for the API site gives an error on my server and the XML is not downloaded.
Why CCP has to fu*k with things that work perfectly well is beyond me tbh.
You will receive an SSL error if you only change the http to https. You also need to remove the hyphen from "api.eve-online.com" as the wildcard certificate only covers the "eveonline.com" domain. |
Shin Chogan
Blueprint Haus Get Off My Lawn
2
|
Posted - 2012.10.19 12:31:00 -
[8] - Quote
Oreamnos Amric wrote:Rickard Pickman wrote:Hmmm. My server rejects the wildcard certificate for some reason. I can view from my browser fine but even with these changes the certificate for the API site gives an error on my server and the XML is not downloaded.
Why CCP has to fu*k with things that work perfectly well is beyond me tbh. You will receive an SSL error if you only change the http to https. You also need to remove the hyphen from "api.eve-online.com" as the wildcard certificate only covers the "eveonline.com" domain.
The whole point is that CCP have switched off the http servers so one can't use them any more :) |
Dragonaire
Corax. The Big Dirty
48
|
Posted - 2012.10.19 15:40:00 -
[9] - Quote
Just had to say something about this fix and other like it I've been seeing, by turning off peer checking in cURL your defeating one of the main points of using https in that you still allow man-in-the-middle attacks. I understand you're just trying to get it to work and I have some questions if going to https was really needed myself but I also believe in taking advantage of the extra security it provides as well since it's required now. It only takes a couple of more line and maybe a config setting to point at a cert file and have it work right. I made the change in Yapeal months ago and haven't had to touch it since. Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. Check out the Yapeal PHP API library thread for more information. |
qu1ckkkk
The Warp Core Stabilizers Spies R' Us
2
|
Posted - 2012.10.19 17:14:00 -
[10] - Quote
Dragonaire wrote:Just had to say something about this fix and other like it I've been seeing, by turning off peer checking in cURL your defeating one of the main points of using https in that you still allow man-in-the-middle attacks. I understand you're just trying to get it to work and I have some questions if going to https was really needed myself but I also believe in taking advantage of the extra security it provides as well since it's required now. It only takes a couple of more line and maybe a config setting to point at a cert file and have it work right. I made the change in Yapeal months ago and haven't had to touch it since.
Edit: BTW the cert file everyone will need is available in config/eveonline.crt which I made or found online. I believe it was somewhere on the cURL site or a related one. It have the whole cert chain you'll need for just the CCP servers.
There is no need for this file. Make sure you use "api.eveonline.com" and not "api.eve-online.com". The cert is valid on eveonline.com for *.eveonline.com, and not *.eve-online.com
:) |
|
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |