Nithanim / gw2api

A library that provides access to the api of Guild Wars 2.
Apache License 2.0
5 stars 1 forks source link

Cannot connect to gw2api ClientHandlerException/SSLHandshakeException #15

Open Nithanim opened 8 years ago

Nithanim commented 8 years ago

I coincidentally found out that ArenaNet switched their CA which broke the SSL validation and therefore the connection to the api. The message looks something like this:

com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

They used an unsupported CA initially but switched because of java. It seems that they forgot about that and did not check this time :( According to some awesome people at StackOverflow this problem is fixed with Java 8 update 31 and higher since the needed certificates are included there.

Nithanim commented 8 years ago

I think I got some workaround but I really need testers. Both the ones that have and don't have the problem would be great! To build it yourself:

git clone https://github.com/Nithanim/gw2api.git
cd gw2api
git checkout issue-15
mvn install

Don't forget to let your dependencies point to 0.0.4-SNAPSHOT instead of the 0.0.3 release build. It might be a good idea to remove the snapshot repository if you added it manually to the pom.xml.