在安装Vcenter中+报错failed+to+get+an+ssl+thumbprint+of+the+target+server+certificate
时间: 2024-01-21 11:14:50 浏览: 558
在安装vCenter时出现"failed to get an ssl thumbprint of the target server certificate"错误是由于无法获取目标服务器证书的SSL Thumbprint引起的。为了解决这个问题,你可以尝试以下方法:
1. 使用第一种方式获取SSL Thumbprint:
```shell
echo -n | openssl s_client -connect 192.168.0.xxx:443 2>/dev/null | openssl x509 -noout -fingerprint -sha1 | cut -d '=' -f 2
```
这个命令将连接到指定的vCenter或ESXi服务器,并获取其SSL Thumbprint。
2. 使用第二种方式获取SSL Thumbprint:
```php
<?php
$cmd = "echo -n | openssl s_client -connect 192.168.0.xxx:443 2>/dev/null | openssl x509 -noout -fingerprint -sha1 | cut -d '=' -f 2";
$output = array();
exec($cmd, $output, $res);
print_r($output);
```
这个PHP示例将执行与第一种方式相同的命令,并将结果打印出来。
请注意,上述命令中的"192.168.0.xxx"应替换为目标vCenter或ESXi服务器的IP地址。
阅读全文
相关推荐















