Mimetis / Dotmim.Sync

A brand new database synchronization framework, multi platform, multi databases, developed on top of .Net Standard 2.0. https://dotmimsync.readthedocs.io/
MIT License
868 stars 186 forks source link

SSL CONNECTION ERROR- Dotmim sync httpresponse #1218

Closed Bella1890 closed 1 week ago

Bella1890 commented 1 month ago

Hi,

I have Implemented the dotmim.sync nuget package to sync the data from clent to server and server to client db

my client site uses a self signed certificate and the data is stored in sqlite db My server site uses a ssl certificate which is valid and is obtained from Certificate Authority with a proper domain..

When i try to sync the data using dotmim.sync , i get the below error:

Dotmim.Sync.HttpResponseContentException: The SSL connection could not be established, see inner exception. at Dotmim.Sync.Web.Client.HttpRequestHandler.ProcessRequestAsync(HttpClient client, SyncContext context, String baseUri, Byte[] data, HttpStep step, ISerializerFactory serializerFactory, IConverter converter, Int32 batchSize, SyncPolicy policy, CancellationToken cancellationToken, IProgress1 progress)

Please help. my both sites are hosted with port 443 (https).

Mimetis commented 1 month ago

You can use your own HttpClient when using the WebRemoteOrchestrator.

I didn't test it, but I think you need to configure the HttpClient instance to use your certificate

Making a quick google search, I found :