Skip to content

Connect to site with self-signed certificate #284

@gregor-tusar

Description

@gregor-tusar

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:

  1. Configure secure keys on localhost instance and remote instance of umbraco (that uses selfsigned cert)
  2. Click on Test connection in uSync Publisher
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions