-
Notifications
You must be signed in to change notification settings - Fork 1
Connect to site with self-signed certificate #284
Description
Describe the bug
I'm trying to connect uSync.Publisher to a internal instance that is using self-signed certificate thus failing to connect.
Error contacting https://dev.my-website.com/umbraco/uSyncReceive/uSyncReceiveApi/Enabled : The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch, RemoteCertificateChainErrors
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: RemoteCertificateNameMismatch, RemoteCertificateChainErrors
Version (please complete the following information):
- Umbraco Version: 13.11.0
- uSync Version 13.3.2
- uSync.Complete Version 13.2.2
To Reproduce
Steps to reproduce the behavior:
- Configure secure keys on localhost instance and remote instance of umbraco (that uses selfsigned cert)
- Click on Test connection in uSync Publisher
- You will see Unreachable message and log warning "The remote certificate is invalid according to the validation procedure"
Expected behavior
Publisher code would respect HttpClientFactoryOptions set in startup when creating new HttpClient in GetHMACClient method.