-
-
Notifications
You must be signed in to change notification settings - Fork 735
parse.initialize not working when using server url which is self signed ssl. #429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for your feedback. We prioritize issues that have clear and concise repro steps. Please see our Bug Reporting Guidelines about what information should be added to this issue.
|
This issue has not been updated for 7 days. If you have additional information to help pinpoint this issue as an SDK bug, please comment on this issue. We will close this issue in 7 days if no additional information is provided. Thank you for your feedback. |
I'm not sure this qualifies as a bug, it is rather a feature that I can't find. The problem is an exception generated by the fact that we're using a self-signed certificate on the server side. I get this for instance:
And that of course makes sense, since the certificate validated by any publicly known CA. The Android documentation explains how to solve this issue here: http://developer.android.com/intl/es/training/articles/security-ssl.html#SelfSigned. But I don't know if the parse SDK exposes any API to do the same. |
This issue has not been updated for 7 days. If you have additional information to help pinpoint this issue as an SDK bug, please comment on this issue. We will close this issue in 7 days if no additional information is provided. Thank you for your feedback. |
Even I get the same issue. Need somebody's help on fixing this issue |
I want to assign trust keystore to the httpclient inside parse SDK |
I am using Android client |
got it working via a NetworkInterceptor not very nice but better than a null security provider Parse.initialize(new Parse.Configuration.Builder(this) public class ParseInterceptor implements ParseNetworkInterceptor {
}
/* package */ HttpURLConnection getRequest(ParseHttpRequest parseRequest)
} public static SSLSocketFactory getCA() { // From https://www.washington.edu/itconnect/security/ca/load-der.crt
// Create a KeyStore containing our trusted CAs // Create a TrustManager that trusts the CAs in our KeyStore // Create an SSLContext that uses our TrustManager
|
Same here! |
@sekharrockz did you ever get this issue resolved? do you mind sharing your solution? |
This can be closed since this can be accomplished now by providing a custom |
eg:
Parse.initialize(new Parse.Configuration.Builder(this)
.applicationId("LTApplicationID") // should correspond to APP_ID env variable
.clientKey(null) // set explicitly unless clientKey is explicitly configured on Parse server
.addNetworkInterceptor(new ParseLogInterceptor())
.server("https://xxx.xxx.xxx.xx:1337/parse/").build());
The text was updated successfully, but these errors were encountered: