7

i am a newbie in android programming. So any help would be greatly appreciated: So i am working on a new project in which i am using Retrofit 2.0 beta 2(Rest Client). So what happened is that the site i use for my Web Service isn't verified and doesn't have a SSL Certificate. Can anyone help me to bypass the SSL Certificate check.

1 Answer 1

5

This Question would be duplicated, the following response worked for me:

https://stackoverflow.com/a/25992879/2096750

with the following implementation:

OkHttpClient client = getUnsafeOkHttpClient();
Retrofit.Builder builder = new Retrofit.Builder()
            .baseUrl(myBaseUrl);
Retrofit retrofit = builder.client(client).build()
...
.
.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.