Hey Luc
Have you heard about the same module but working with .Net core ?
I have tried from my mac and it fails with this kind of error... Same from PowerShell 7... but it does work from PowerShell 5 :
Add-Type: (4,44): error CS0246: The type or namespace name 'ICertificatePolicy' could not be found (are you missing a using
directive or an assembly reference?) public class IDontCarePolicy : ICertificatePolicy {
^
Add-Type: Cannot add type. Compilation errors occurred.
New-Object: Cannot find type [IDontCarePolicy]: verify that the assembly containing this type is loaded.
Invoke-RestMethod: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch,
RemoteCertificateChainErrors
InvalidOperation: You cannot call a method on a null-valued expression.
It's really handy to have it. I have to maintain more than 15 vcenters with HA config.. and each time there is an upgrade HA is to be killed and then reset.
Thanks