-
Notifications
You must be signed in to change notification settings - Fork 15
can not connect to unity from linux with errors #90
Description
PS /root> Connect-Unity -Server $unity -CredentialS $Credentials -TrustAllCerts $true
Welcome to Unity-Powershell!
Log in to an EMC Unity: Connect-Unity
To find out what commands are available, type: Get-Command -Module Unity-Powershell
To get help for a specific command, type: get-help [verb]-Unity[noun] (Get-Help Get-UnityVMwareLUN)
To get extended help for a specific command, type: get-help [verb]-Unity[noun] -full (Get-Help Get-UnityVMwareLUN -Full)
Documentation available at http://unity-powershell.readthedocs.io/en/latest/
Issues Tracker available at https://github.com/equelin/Unity-Powershell/issues
Licensed under the MIT License. (C) Copyright 2016-2017 Erwan Quelin and the community.
Add-Type:
Line |
4 | Add-Type -TypeDefinition @"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| (3,40): error CS0246: The type or namespace name 'ICertificatePolicy' could not be found (are you missing a using directive or an assembly reference?)
public class TrustAllCertsPolicy : ICertificatePolicy {
^
Add-Type:
Line |
4 | Add-Type -TypeDefinition @"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot add type. Compilation errors occurred.
New-Object:
Line |
16 | … anager]::CertificatePolicy = New-Object -TypeName TrustAllCertsPolicy
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find type [TrustAllCertsPolicy]: verify that the assembly containing this type is loaded.
Please verify the connectivity with the array
Error details: The SSL connection could not be established, see inner exception.
ParentContainsErrorRecordException:
Line |
34 | $NewResponse = $Request.GetResponse()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception calling "GetResponse" with "0" argument(s): "The SSL connection could not be established, see inner exception."