cohesity / cohesity-powershell-module

This repository provides a PowerShell Module for Cohesity DataPlatform. https://cohesity.github.io/cohesity-powershell-module
Apache License 2.0
42 stars 16 forks source link

Connect-CohesityCluster - ignore SSL certificate check ? #131

Closed sdupuy closed 2 years ago

sdupuy commented 3 years ago

❓ Questions and Requests

Hi,

Is there a way to ignore SSL certificate check while using Connect-CohesityCluster ?

We are currently using a self signed certificat and I cannot connect with powershell :

The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot

For example, the cmdlet Connect-VIServer from VMware does not care of invalid certificate.

Sylvain

pyashish commented 3 years ago

@bijayprasadtiwari can you take a look at this ?

bijayprasadtiwari commented 3 years ago

Let me have a look into it.

bijayprasadtiwari commented 3 years ago

@sdupuy , can you delete $HOME/.cohesity, and make a fresh attempt, and ensure that the flag "AllowInvalidServerCertificates" is set to "true" in $HOME/.cohesity

bijayprasadtiwari commented 3 years ago

@sdupuy, We are working on it, to reproduce the issue, can you share the certificate details and the cluster version.

pyashish commented 3 years ago

@sdupuy did this solve this issue ?

bijayprasadtiwari commented 3 years ago

@sdupuy, Few queries, please let us know the version used for,

Moreover, we worked on the fix that works with .NET 4.6 support. Currently the cohesity powershell SDK requires .NET SDK 4.51. It would be a high risk to ask each of our users to upgrade to .NET 4.6.

Therefore, we will consider the fix in our v2 API release. Thank you for your patience.

pyashish commented 2 years ago

Closing this issue for now. Will re-visit this with future plugins.