In the solution that was suggested, one should use CBLHttpClientFactory 
from com.couchbase.cblite that has the function setSSLSocketFactory.
If I have compile 'com.couchbase.cblite:CBLite:1.0.0-beta2' in my project 
gradle file, this CBLHttpClientFactory is not accessible. How can I have in 
my project ?


Den lördagen den 5:e april 2014 kl. 00:12:03 UTC+2 skrev Traun Leyden:
>
> I think that site must be using a self-signed certificate, or is using a 
> certificate that is not signed by a "standard" certificate authority that's 
> pre-shipped with the http client libs.
>
> There's a way to plugin a custom SSLSocketFactory that should allow you to 
> circumvent the issue:
>
>
> https://github.com/couchbase/couchbase-lite-android/wiki/FAQ-Android#q-how-can-i-connect-to-a-sync-gateway-via-https-which-does-not-have-an-ssl-cert-signed-by-a-root-authority
>
>
>
>
> On Fri, Apr 4, 2014 at 7:24 AM, Anna <[email protected] 
> <javascript:>>wrote:
>
>> No, no problems on the web, no security alert.
>>
>> Den fredagen den 4:e april 2014 kl. 16:22:31 UTC+2 skrev Jens Alfke:
>>
>>>
>>> On Apr 4, 2014, at 12:56 AM, Anna <[email protected]> wrote:
>>>
>>> Is there any I can resolve this? or what could be a cause for that?
>>>
>>>
>>> I don’t know the details, but since the exception is 
>>> "javax.net.ssl.SSLPeerUnverifiedException: 
>>> No peer certificate”, it sounds like the server doesn’t have a valid SSL 
>>> certificate.
>>>
>>> If you access the server’s URL using a web browser, do you get a 
>>> security alert?
>>>
>>> —Jens
>>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Couchbase Mobile" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/mobile-couchbase/94a5f613-439f-46b3-974b-d31c393400b2%40googlegroups.com<https://groups.google.com/d/msgid/mobile-couchbase/94a5f613-439f-46b3-974b-d31c393400b2%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/8f0e06a7-aafb-4b10-8151-34830622632b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to