chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (Jira) <>
Subject [jira] [Commented] (CMIS-1081) PortCMIS Self-Signed Certs
Date Wed, 02 Oct 2019 21:40:00 GMT


Florian Müller 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 {{HttpClientHandler}}
object to change the server certificate validation.

> PortCMIS Self-Signed Certs
> --------------------------
>                 Key: CMIS-1081
>                 URL:
>             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 certificates for
testing purposes. There should be a session parameter to allow self-signed certificates.
> Stack Trace:
>    Error Message:
>     PortCMIS.Exceptions.CmisConnectionException : Cannot access URL: One or more errors occurred. (The SSL connection could not be established, see inner exception.)
> ---- System.AggregateException : One or more errors occurred. (The SSL connection could not be established, see inner exception.)
> -------- System.Net.Http.HttpRequestException : The SSL connection could not be established, see inner exception.
> ------------ System.Security.Authentication.AuthenticationException : The remote certificate is invalid according to the validation procedure.
>     Stack Trace:
>        at PortCMIS.Binding.Http.DefaultHttpInvoker.Invoke(UrlBuilder url, HttpMethod method, HttpContent content, IBindingSession session, Nullable`1 offset, Nullable`1 length, IDictionary`2 headers)
>    at PortCMIS.Binding.Http.DefaultHttpInvoker.InvokeGET(UrlBuilder url, IBindingSession session)
>    at PortCMIS.Binding.Browser.AbstractBrowserBindingService.Read(UrlBuilder url)
>    at PortCMIS.Binding.Browser.AbstractBrowserBindingService.GetRepositoriesInternal(String repositoryId)
>    at PortCMIS.Binding.Impl.BindingRepositoryService.GetRepositoryInfos(IExtensionsData extension)
>    at PortCMIS.Client.Impl.SessionFactory.GetRepositories(IDictionary`2 parameters, IObjectFactory objectFactory, IAuthenticationProvider authenticationProvider, ICache cache)
>    at PortCMIS.Client.Impl.SessionFactory.GetRepositories(IDictionary`2 parameters)

This message was sent by Atlassian Jira

View raw message