Skip to content

Cosmos-nosql RemoteCertificateNameMismatch #229

Description

@Marquis-of-Sandwiches

I'm in an environment where there are self-signed certs among other things for which I am not responsible and cannot control.
I'm getting a RemoteCertificateNameMismatch error when trying to use thee tool. Probably a SAN issue someone that isn't me can't fix given the temporal nature of Azure resources.

The documentation doesn't mention any way to allow name mismatches. This ultimately blocks my cosmosdb data dump.

I found "DisableSslValidation": true in another ticket that isn't mentioned elsewhere. But, that does not seem to work.

In case it isn't obvious, I am new to working with .net.


{
  "Source": "Cosmos-nosql",
  "Sink": "JSON",
  "SourceSettings": {
    "ConnectionString": "AccountEndpoint=https://10.remote.address.here:10255;AccountKey=secret-goes-here==",
	"ConnectionMode": "direct",
    "Database": "database-name-here",
    "Container": "collection-name",
	"DisableSslValidation": true
  },
  "SinkSettings": {
	 "FilePath": "./foo.yml"
  }
}

fail: CosmosDataSourceExtension[0]
Failed to connect to CosmosDB. Please check your connection settings and try again.
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
at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions