winphone 8 authentication failure write headers filename unknown

0 votes
same project run in Android iOS ok but in WP8 got problem though using App42_Unity3D_SDK_WP8_2.6.1.dll:

AppCallBack_authentication:OnExceptioin: com.shephertz.app42.paas.sdk.csharp.App42Exception: System.Net.WebException: Error writing request: The Authentication or decryption has failed. at System.Net.WebConnectionStream.WriteHeader() [0x00000] in <filename unknown>:0

please advise what's the issue and a solution.

thanks.

daniel
asked May 12, 2014 in App42 Cloud API-BaaS by mrdaniel (10 points)

1 Answer

0 votes

I think you are trying to call the methods from Unity_Editor, if you are doing so then you have to use X509Certificates validator like this :-

#if UNITY_EDITOR

public static bool Validator (object sender, System.Security.Cryptography.X509Certificates.X509Certificate certificate, System.Security.Cryptography.X509Certificates.X509Chain chain, System.Net.Security.SslPolicyErrors sslPolicyErrors)
         {return true;}
#endif
void Start ()
{
#if UNITY_EDITOR
   ServicePointManager.ServerCertificateValidationCallback = Validator;
#endif
App42API.Initialize("API_KEY","SECRET_KEY");
}

This is also mentioned in README of the SDK.

If your issue still exists or any other query,  feel free to ask us.

 

 

 

answered May 12, 2014 by Akshay.Mishra (179 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...