From dev-return-10278-archive-asf-public=cust-asf.ponee.io@chemistry.apache.org Wed Oct 2 21:40:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3DD8118064F for ; Wed, 2 Oct 2019 23:40:03 +0200 (CEST) Received: (qmail 53079 invoked by uid 500); 2 Oct 2019 21:40:02 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 53060 invoked by uid 99); 2 Oct 2019 21:40:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Oct 2019 21:40:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9B383E2DAD for ; Wed, 2 Oct 2019 21:40:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 1AB3D78048F for ; Wed, 2 Oct 2019 21:40:00 +0000 (UTC) Date: Wed, 2 Oct 2019 21:40:00 +0000 (UTC) From: =?utf-8?Q?Florian_M=C3=BCller_=28Jira=29?= To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CMIS-1081) PortCMIS Self-Signed Certs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CMIS-1081?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16943= 182#comment-16943182 ]=20 Florian M=C3=BCller commented on CMIS-1081: -------------------------------------- Certificate checks can be configured with a custom authentication provider.= See the {{StandardAuthenticationProvider}} class as an example. Override the {{PrepareHttpClientHandler}} method and use the passed {{HttpC= lientHandler}} object to change the server certificate validation. > PortCMIS Self-Signed Certs > -------------------------- > > Key: CMIS-1081 > URL: https://issues.apache.org/jira/browse/CMIS-1081 > Project: Chemistry > Issue Type: Bug > Components: portcmis > Affects Versions: PortCMIS 0.3.0 > Reporter: Aaron Hiltgen > Priority: Major > > Currently there is no way to set PortCMIS to accept self-signed server ce= rtificates for testing purposes. There should be a session parameter to all= ow self-signed certificates. > Stack Trace: > =C2=A0 > =C2=A0=C2=A0=C2=A0Error=C2=A0Message: > =C2=A0=C2=A0=C2=A0=C2=A0PortCMIS.Exceptions.CmisConnectionException=C2=A0= :=C2=A0Cannot=C2=A0access URL:=C2=A0One=C2=A0or=C2=A0more=C2=A0errors=C2=A0= occurred.=C2=A0(The=C2=A0SSL=C2=A0connection=C2=A0could=C2=A0not=C2=A0be=C2= =A0established,=C2=A0see=C2=A0inner=C2=A0exception.) > ----=C2=A0System.AggregateException=C2=A0:=C2=A0One=C2=A0or=C2=A0more=C2= =A0errors=C2=A0occurred.=C2=A0(The=C2=A0SSL=C2=A0connection=C2=A0could=C2= =A0not=C2=A0be=C2=A0established,=C2=A0see=C2=A0inner=C2=A0exception.) > --------=C2=A0System.Net.Http.HttpRequestException=C2=A0:=C2=A0The=C2=A0S= SL=C2=A0connection=C2=A0could=C2=A0not=C2=A0be=C2=A0established,=C2=A0see= =C2=A0inner=C2=A0exception. > ------------=C2=A0System.Security.Authentication.AuthenticationException= =C2=A0:=C2=A0The=C2=A0remote=C2=A0certificate=C2=A0is=C2=A0invalid=C2=A0acc= ording=C2=A0to=C2=A0the=C2=A0validation=C2=A0procedure. > =C2=A0=C2=A0=C2=A0=C2=A0Stack=C2=A0Trace: > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at=C2=A0PortCMIS.Binding.Http.D= efaultHttpInvoker.Invoke(UrlBuilder=C2=A0url,=C2=A0HttpMethod=C2=A0method,= =C2=A0HttpContent=C2=A0content,=C2=A0IBindingSession=C2=A0session,=C2=A0Nul= lable`1=C2=A0offset,=C2=A0Nullable`1=C2=A0length,=C2=A0IDictionary`2=C2=A0h= eaders) > =C2=A0=C2=A0=C2=A0at=C2=A0PortCMIS.Binding.Http.DefaultHttpInvoker.Invoke= GET(UrlBuilder=C2=A0url,=C2=A0IBindingSession=C2=A0session) > =C2=A0=C2=A0=C2=A0at=C2=A0PortCMIS.Binding.Browser.AbstractBrowserBinding= Service.Read(UrlBuilder=C2=A0url) > =C2=A0=C2=A0=C2=A0at=C2=A0PortCMIS.Binding.Browser.AbstractBrowserBinding= Service.GetRepositoriesInternal(String=C2=A0repositoryId) > =C2=A0=C2=A0=C2=A0at=C2=A0PortCMIS.Binding.Impl.BindingRepositoryService.= GetRepositoryInfos(IExtensionsData=C2=A0extension) > =C2=A0=C2=A0=C2=A0at=C2=A0PortCMIS.Client.Impl.SessionFactory.GetReposito= ries(IDictionary`2=C2=A0parameters,=C2=A0IObjectFactory=C2=A0objectFactory,= =C2=A0IAuthenticationProvider=C2=A0authenticationProvider,=C2=A0ICache=C2= =A0cache) > =C2=A0=C2=A0=C2=A0at=C2=A0PortCMIS.Client.Impl.SessionFactory.GetReposito= ries(IDictionary`2=C2=A0parameters) -- This message was sent by Atlassian Jira (v8.3.4#803005)