I am trying to access a v3.5 Raven Database from an Asp.Net Core app (netcoreapp2.0), client and server both using build #35223.
Raven is setup to use SSL with a Self Signed Certificate, the Raven config has IgnoreSslCertificateErrors set to All.
The certificate is installed and the studio works in the browser as expected after accepting the cert.
Accessing the same database from an existing Full Framework 4.6 app works fine, after I've setup a ServerCertificateValidationCallback handler to ignore errors for my self signed cert.
Adding the same handler to the .Net Core app, it never comes in there and the request never makes it to Raven.
It looks like this global ServerCertificateValidationCallback on the ServicePointManager is no longer supported in .Net Core. The preferred method now seems to be to use ServerCertificateCustomValidationCallback on a HttpClientHandler, but this then needs to be passed to your HttpClient constructor. I do not see away of achieving this with the v3.5 Raven.Client.
Is there some method I can use to inject a custom handler in the HttpClient used by the Raven.Client?
Or some other method I am missing to make this work with Self Signed Certs in .Net Core?
Thanks,
Adrian.