The http-client-factory class that has the method to get instance and to set the ssl socket is called CouchbaseLiteHttpClientFactory. The problem is that CouchBaseLite does not use this class for requests to the database (class RemoteRequest ), but the mentioned about HttpClientFactory which does not have this functionality at all. thus, it is possible to use the solution with the ssl socket with the current version of CouchBaseLite in some way?
Den torsdagen den 17:e april 2014 kl. 20:01:02 UTC+2 skrev Traun Leyden: > > In beta2 there was a mass re-naming to remove the CBL prefix, since that's > not idiomatic for Java. > > So CBLHttpClientFactory has been renamed to HttpClientFactory. > > > > > On Thu, Apr 17, 2014 at 3:40 AM, Anna <[email protected] <javascript:> > > wrote: > >> 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]> 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]. >>>> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/mobile-couchbase/8f0e06a7-aafb-4b10-8151-34830622632b%40googlegroups.com<https://groups.google.com/d/msgid/mobile-couchbase/8f0e06a7-aafb-4b10-8151-34830622632b%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/553c176b-dddf-438a-b501-c8bbc23d1efd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
