0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

VMware PowerCLI で証明書エラーになった場合の対処法

Last updated at Posted at 2023-01-19

vCenter Server を PowerCLI で操作しているとき、証明書関連のエラーが出力されることがある。
Connect-VIServer などの一部コマンドレットでは Insecure 相当のオプション(この場合は -Force)で回避ができるが、 これに該当するオプションが見当たらない場合が.... 例えば:

PS /root> get-vm -name test-vm | Export-VApp -Destination /root -Format ova -Name test-vm.ova
Export-VApp: 2023/01/13 14:04:43        Export-VApp             The SSL connection could not be established, see inner exception.

このような場合は、InvalidCertificateActionIgnore をセットしてやれば良いようだ。

PS /root> Set-PowerCLIConfiguration -InvalidCertificateAction:Ignore

Perform operation?
Performing operation 'Update VMware.PowerCLI configuration.'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): Y

Scope    ProxyPolicy     DefaultVIServerMode InvalidCertificateAction  DisplayDeprecationWarnings WebOperationTimeout
                                                                                                  Seconds
-----    -----------     ------------------- ------------------------  -------------------------- -------------------
Session  UseSystemProxy  Multiple            Ignore                    True                       300
User                                         Ignore
AllUsers
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?