Hi All,
I'm exploring the licensing part with Get-licenseDatamanager command. I'm running PowerCLI 11.2. I connect to my vCenter server and then run command Get-LicenseDatamanager, I get below error:
Get-LicenseDataManager : 6/12/2019 1:56:40 PM Get-LicenseDataManager The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
At line:1 char:11
+ $Licens = Get-LicenseDataManager -Server lqap4242.lss.emc.com
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-LicenseDataManager], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.License.Commands.Cmdlets.GetLicenseDataManager
The InvalidCertificateAction is set to Ignore. Not sure what else am I missing here. Please help. TIA.
Is the InvalidCertificateAction set to Ignore in all three scopes?
Do a Get-PowerCLIConfiguration.
Could it be that you are trying to use a TLS protocol (i.e. TLS v1.0) that the environment doesn't allow.
See Mike's post vSphere and TLS 1.2
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Yes, its set to Ignore for all three Scope:
Scope ProxyPolicy DefaultVIServerMode InvalidCertificateAction DisplayDeprecationWarnings WebOperationTimeout
Seconds
----- ----------- ------------------- ------------------------ -------------------------- -------------------
Session UseSystemProxy Multiple Ignore True 300
User Multiple Ignore
AllUsers Ignore
And what about the TLS protocol version?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference