Vmware Vcenter7.0证书web续期发生错误

1. 故障描述

vSphere Client 版本 7.0.2.00200
vCenter _MACHINE_CERT快到期了,通过web界面更新证书失败

第一步先这样,重新续订一下证书
在这里插入图片描述

续订发生错误
在这里插入图片描述

2. 解决办法

2.1. 前提工作

登陆ssh到vcenter,重新生成证书

先关掉HA,不然证书管理会报错。

Connected to service* List APIs: "help api list"* List Plugins: "help pi list"* Launch BASH: "shell"Command> shell
Shell access is granted to root
root@localhost [ ~ ]# cd /usr/lib/vmware-vmca/bin/
root@localhost [ /usr/lib/vmware-vmca/bin ]# /usr/lib/vmware-vmca/bin/certificate-managerCertificate Manager tool do not support vCenter HA systems

PSSSSSSSS:记得vCenter做备份,做快照

2.2. 生成计算机ssl证书

生成证书,选择第三个(PS,如果没有域名的,一定要写IP,不然很容易卡在85%,服务不能起来)

root@localhost [ ~ ]# /usr/lib/vmware-vmca/bin/certificate-manager_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |                                                                     ||      *** Welcome to the vSphere 6.8 Certificate Manager  ***        ||                                                                     ||                   -- Select Operation --                            ||                                                                     ||      1. Replace Machine SSL certificate with Custom Certificate     ||                                                                     ||      2. Replace VMCA Root certificate with Custom Signing           ||         Certificate and replace all Certificates                    ||                                                                     ||      3. Replace Machine SSL certificate with VMCA Certificate       ||                                                                     ||      4. Regenerate a new VMCA Root Certificate and                  ||         replace all certificates                                    ||                                                                     ||      5. Replace Solution user certificates with                     ||         Custom Certificate                                          ||         NOTE: Solution user certs will be deprecated in a future    ||         release of vCenter. Refer to release notes for more details.||                                                                     ||      6. Replace Solution user certificates with VMCA certificates   ||                                                                     ||      7. Revert last performed operation by re-publishing old        ||         certificates                                                ||                                                                     ||      8. Reset all Certificates                                      ||_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|
Note : Use Ctrl-D to exit.
Option[1 to 8]: 3Please provide valid SSO and VC privileged user credential to perform certificate operations.
Enter username [Administrator@vsphere.local]:
Enter password:
certool.cfg file exists, Do you wish to reconfigure : Option[Y/N] ? : yPress Enter key to skip optional parameters or use Previous value.Enter proper value for 'Country' [Previous value : CN] : Enter proper value for 'Name' [Previous value : CA] : Enter proper value for 'Organization' [Previous value : VMware] : Enter proper value for 'OrgUnit' [Previous value : VMware Engineering] : Enter proper value for 'State' [Previous value : California] : gdEnter proper value for 'Locality' [Previous value : Palo Alto] : gzEnter proper value for 'IPAddress' (Provide comma separated values for multiple IP addresses) [optional] : XX.XX.XX.XXEnter proper value for 'Email' [Previous value : email@acme.com] : q@qq.ccEnter proper value for 'Hostname' (Provide comma separated values for multiple Hostname entries) [Enter valid Fully Qualified Domain Name(FQDN), For Example : example.domain.com] : XX.XX.XX.XXEnter proper value for VMCA 'Name' :XX.XX.XX.XXYou are going to regenerate Machine SSL cert using VMCA
Continue operation : Option[Y/N] ? : y
Get site nameompleted [Replacing Machine SSL Cert...]                  
default-first-site
Lookup all services
Get service default-first-site:721f0c08-f5fe-4233-aca8-adb8de27427b
Update service default-first-site:721f0c08-f5fe-4233-aca8-adb8de27427b; spec: /tmp/svcspec_nmq8ssku
Get service default-first-site:a8fa2cf1-a539-4327-aa48-c33761a538a4
Update service default-first-site:a8fa2cf1-a539-4327-aa48-c33761a538a4; spec: /tmp/svcspec_o_gl7c_2
Get service default-first-site:204a2a4e-223e-46d6-93e2-fec0c90393c4
Update service default-first-site:204a2a4e-223e-46d6-93e2-fec0c90393c4; spec: /tmp/svcspec__2p8luju
Get service 79e91659-12a1-427b-92e5-11f1cbc2c150
Update service 79e91659-12a1-427b-92e5-11f1cbc2c150; spec: /tmp/svcspec_8zwpgcef
Get service 1652cda7-3207-431e-9d82-031ceffb42b4_com.vmware.vrops
Don't update service 1652cda7-3207-431e-9d82-031ceffb42b4_com.vmware.vrops
Get service 0cb00c88-bb60-478c-9737-802019c5708a
Update service 0cb00c88-bb60-478c-9737-802019c5708a; spec: /tmp/svcspec_k5szxjgs
Get service 1ee5c2aa-fde0-489a-8f95-f701f84b44c9
Update service 1ee5c2aa-fde0-489a-8f95-f701f84b44c9; spec: /tmp/svcspec_sdbbikhr
Get service 5f15b57d-8269-47d4-88af-c9aab1fd223d
Update service 5f15b57d-8269-47d4-88af-c9aab1fd223d; spec: /tmp/svcspec_mwgz82tz
Get service 56e494d3-f758-461a-8337-e309d1e2d0b4
Update service 56e494d3-f758-461a-8337-e309d1e2d0b4; spec: /tmp/svcspec_b6fwtzz6
Get service d3426061-6261-456f-b5b2-e70d3e56c69e
Update service d3426061-6261-456f-b5b2-e70d3e56c69e; spec: /tmp/svcspec_o08ocymw
Get service 1c5fe660-5abd-453d-9f18-d21ca1a615b9
Update service 1c5fe660-5abd-453d-9f18-d21ca1a615b9; spec: /tmp/svcspec_v__tqn34
Get service 8ccf37e5-c01f-491b-88d1-fd67d6377c2f
Update service 8ccf37e5-c01f-491b-88d1-fd67d6377c2f; spec: /tmp/svcspec_yczoj_f9
Get service 4d101d2f-a50f-4ffd-b03a-f3728817b340
Update service 4d101d2f-a50f-4ffd-b03a-f3728817b340; spec: /tmp/svcspec_wyhs5pfy
Get service 761c8d6c-131f-4136-9e0e-4945917a5607
Update service 761c8d6c-131f-4136-9e0e-4945917a5607; spec: /tmp/svcspec_gjkmay7h
Get service ec372f25-38cf-4cd8-ac92-6ebeff0ff85e
Update service ec372f25-38cf-4cd8-ac92-6ebeff0ff85e; spec: /tmp/svcspec_u4c16zhs
Get service 1652cda7-3207-431e-9d82-031ceffb42b4_com.vmware.vsphere.client
Don't update service 1652cda7-3207-431e-9d82-031ceffb42b4_com.vmware.vsphere.client
Get service e97549a3-2aa5-4e47-a81b-5b6490837d43
Update service e97549a3-2aa5-4e47-a81b-5b6490837d43; spec: /tmp/svcspec_h26ke7t5
Get service 279f5d2f-f375-41d6-b5d3-8a7e397fb6c8
Update service 279f5d2f-f375-41d6-b5d3-8a7e397fb6c8; spec: /tmp/svcspec_hw2tz45w
Get service 4730664d-0fe7-4e70-b827-bcdf1686d17d
Update service 4730664d-0fe7-4e70-b827-bcdf1686d17d; spec: /tmp/svcspec_mn19ltn_
Get service e64650fc-800d-4855-9b60-bd591562102b
Update service e64650fc-800d-4855-9b60-bd591562102b; spec: /tmp/svcspec_8iz8nl1t
Get service 0c872fd2-b582-4172-8b7e-465f6de28b76
Update service 0c872fd2-b582-4172-8b7e-465f6de28b76; spec: /tmp/svcspec_f3957lva
Get service bf46ae3e-9d26-459a-9703-25000ba81e09
Update service bf46ae3e-9d26-459a-9703-25000ba81e09; spec: /tmp/svcspec_sfje8un0
Get service 430891f7-bb3c-475a-9331-bdb671f1b415
Update service 430891f7-bb3c-475a-9331-bdb671f1b415; spec: /tmp/svcspec_g91d7d9p
Get service 1ee5233a-0737-4b71-b74e-28105ff9361b
Update service 1ee5233a-0737-4b71-b74e-28105ff9361b; spec: /tmp/svcspec_184jc1s2
Get service 6cc99f96-ee9a-406b-9018-2414b837c442_kv
Update service 6cc99f96-ee9a-406b-9018-2414b837c442_kv; spec: /tmp/svcspec_2rjbyjlj
Get service c947d5e0-c832-4b98-9518-c28d5be261c6
Update service c947d5e0-c832-4b98-9518-c28d5be261c6; spec: /tmp/svcspec_d18ux756
Get service cc78a6fe-ee02-414a-a10a-5b9511810c0e
Update service cc78a6fe-ee02-414a-a10a-5b9511810c0e; spec: /tmp/svcspec_nd5ehat0
Get service daaffbbd-5fdb-4aaf-842a-94e4c6948920
Update service daaffbbd-5fdb-4aaf-842a-94e4c6948920; spec: /tmp/svcspec__o82zeym
Get service 206c94d5-8cc7-4646-a93e-389064c64bbe
Update service 206c94d5-8cc7-4646-a93e-389064c64bbe; spec: /tmp/svcspec_oecjimvw
Get service 6cc99f96-ee9a-406b-9018-2414b837c442_authz
Update service 6cc99f96-ee9a-406b-9018-2414b837c442_authz; spec: /tmp/svcspec_du_d2yx4
Get service 26edf5a0-b4e6-41b9-b972-e74c493dab27
Update service 26edf5a0-b4e6-41b9-b972-e74c493dab27; spec: /tmp/svcspec_dc89lu60
Get service 0d85950f-ca7d-4686-aa36-b627ce77fda9
Update service 0d85950f-ca7d-4686-aa36-b627ce77fda9; spec: /tmp/svcspec_igw1rch3
Get service 287c218f-a49f-41fd-b845-1962a1db7b2f
Update service 287c218f-a49f-41fd-b845-1962a1db7b2f; spec: /tmp/svcspec_0fjjjag3
Get service b6332254-0911-4bb1-8461-7e9d7ac18fb2
Update service b6332254-0911-4bb1-8461-7e9d7ac18fb2; spec: /tmp/svcspec_0up89kup
Get service 87899b67-58d6-4d1a-99a1-7a5a47fe8d79
Update service 87899b67-58d6-4d1a-99a1-7a5a47fe8d79; spec: /tmp/svcspec_de6rp33r
Get service 0fbed2c1-0e7e-4fd1-9eaa-78a6af02d788
Update service 0fbed2c1-0e7e-4fd1-9eaa-78a6af02d788; spec: /tmp/svcspec_s5ew895r
Get service 6cc99f96-ee9a-406b-9018-2414b837c442
Update service 6cc99f96-ee9a-406b-9018-2414b837c442; spec: /tmp/svcspec_ue3hi4zt
Get service 79ed9113-fa3f-4f5e-817a-7a11145880c7
Update service 79ed9113-fa3f-4f5e-817a-7a11145880c7; spec: /tmp/svcspec_r0azsaib
Get service 1829b7b8-e755-4db6-9665-439f3f2624d1
Update service 1829b7b8-e755-4db6-9665-439f3f2624d1; spec: /tmp/svcspec_pfbbxyof
Get service 1146b510-76ab-4e88-9a1e-5933b4d64f3e
Update service 1146b510-76ab-4e88-9a1e-5933b4d64f3e; spec: /tmp/svcspec_rncl11rd
Get service 31728e0d-6f78-4da8-93aa-98fb456d5672
Update service 31728e0d-6f78-4da8-93aa-98fb456d5672; spec: /tmp/svcspec_7i1z6ff9
Get service 196f8571-ac23-4a80-882f-aba9deb7989b
Update service 196f8571-ac23-4a80-882f-aba9deb7989b; spec: /tmp/svcspec_jkmbsi93
Get service 1652cda7-3207-431e-9d82-031ceffb42b4_com.vmware.vcops
Don't update service 1652cda7-3207-431e-9d82-031ceffb42b4_com.vmware.vcops
Get service bc991693-97a8-4993-949d-d5eb461d4824
Don't update service bc991693-97a8-4993-949d-d5eb461d4824
Get service 1652cda7-3207-431e-9d82-031ceffb42b4
Update service 1652cda7-3207-431e-9d82-031ceffb42b4; spec: /tmp/svcspec_xth2o90b
Get service 659e024f-fa27-4d0a-bcb8-54634aea9679
Update service 659e024f-fa27-4d0a-bcb8-54634aea9679; spec: /tmp/svcspec_5g731icv
Get service b7c2a448-af0e-4d7e-a892-0d307bd9ee9d
Update service b7c2a448-af0e-4d7e-a892-0d307bd9ee9d; spec: /tmp/svcspec_3e61aymd
Updated 43 service(s)
Status : 85% Completed [starting services...]                  Status : 100% Completed [All tasks completed successfully]

2.3. 删除旧的证书

# 查看一下现有的证书
root@localhost [ ~ ]# for store in $(/usr/lib/vmware-vmafd/bin/vecs-cli store list | grep -v TRUSTED_ROOT_CRLS); do echo "[*] Store :" $store; /usr/lib/vmware-vmafd/bin/vecs-cli entry list --store $store --text | grep -ie "Alias" -ie "Not After";done;
[*] Store : MACHINE_SSL_CERT
Alias :	__MACHINE_CERTNot After : May 11 08:44:26 2025 GMT
[*] Store : TRUSTED_ROOTS
Alias :	6f6ae78eb3a9abdbc7bf43797b765e62851a6af6Not After : May 25 02:23:47 2031 GMT
[*] Store : machine
Alias :	machineNot After : May 25 02:23:47 2031 GMT
[*] Store : vsphere-webclient
Alias :	vsphere-webclientNot After : May 25 02:23:47 2031 GMT
[*] Store : vpxd
Alias :	vpxdNot After : May 25 02:23:47 2031 GMT
[*] Store : vpxd-extension
Alias :	vpxd-extensionNot After : May 25 02:23:47 2031 GMT
[*] Store : hvc
Alias :	hvcNot After : May 25 02:23:47 2031 GMT
[*] Store : data-encipherment
Alias :	data-enciphermentNot After : May 25 02:23:47 2031 GMT
[*] Store : APPLMGMT_PASSWORD
Alias :	location_password_default
[*] Store : SMS
Alias :	sms_self_signedNot After : May 30 02:28:11 2031 GMT
[*] Store : wcp
Alias :	wcpNot After : May 30 02:19:32 2023 GMT
[*] Store : BACKUP_STORE
Alias :	bkp___MACHINE_CERTNot After : May 30 14:23:47 2023 GMT
Alias :	bkp_machineNot After : May 25 02:23:47 2031 GMT
Alias :	bkp_vsphere-webclientNot After : May 25 02:23:47 2031 GMT
Alias :	bkp_vpxdNot After : May 25 02:23:47 2031 GMT
Alias :	bkp_vpxd-extensionNot After : May 25 02:23:47 2031 GMT
Alias :	bkp_hvcNot After : May 25 02:23:47 2031 GMT
Alias :	bkp_wcpNot After : May 30 02:19:32 2023 GMT
Alias :	__MACHINE_CERTNot After : May 11 08:21:25 2025 GMT# 删除证书
root@localhost [ ~ ]# /usr/lib/vmware-vmafd/bin/vecs-cli store delete --name BACKUP_STORE -y
Successfully deleted store [BACKUP_STORE]
root@localhost [ ~ ]# for store in $(/usr/lib/vmware-vmafd/bin/vecs-cli store list | grep -v TRUSTED_ROOT_CRLS); do echo "[*] Store :" $store; /usr/lib/vmware-vmafd/bin/vecs-cli entry list --store $store --text | grep -ie "Alias" -ie "Not After";done;
[*] Store : MACHINE_SSL_CERT
Alias :	__MACHINE_CERTNot After : May 11 08:44:26 2025 GMT
[*] Store : TRUSTED_ROOTS
Alias :	6f6ae78eb3a9abdbc7bf43797b765e62851a6af6Not After : May 25 02:23:47 2031 GMT
[*] Store : machine
Alias :	machineNot After : May 25 02:23:47 2031 GMT
[*] Store : vsphere-webclient
Alias :	vsphere-webclientNot After : May 25 02:23:47 2031 GMT
[*] Store : vpxd
Alias :	vpxdNot After : May 25 02:23:47 2031 GMT
[*] Store : vpxd-extension
Alias :	vpxd-extensionNot After : May 25 02:23:47 2031 GMT
[*] Store : hvc
Alias :	hvcNot After : May 25 02:23:47 2031 GMT
[*] Store : data-encipherment
Alias :	data-enciphermentNot After : May 25 02:23:47 2031 GMT
[*] Store : APPLMGMT_PASSWORD
Alias :	location_password_default
[*] Store : SMS
Alias :	sms_self_signedNot After : May 30 02:28:11 2031 GMT
[*] Store : wcp
Alias :	wcpNot After : May 30 02:19:32 2023 GMT

2.4. 再更新wcp证书

https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.authentication.doc/GUID-543BB100-515E-4FFF-8D88-7D73E4CB8248.html

root@localhost [ /tmp ]# vim certool.cfg 
root@localhost [ /tmp ]# cat certool.cfg
#
# Template file for a CSR request
## Country is needed and has to be 2 characters
Country = US
Name	= CA
Organization = VMware
OrgUnit = VMware Engineering
State = gd
Locality = Palo Alto
IPAddress = 127.0.0.1
Email = email@acme.com
Hostname = xx.xx.xx.xxroot@localhost [ /tmp ]# /usr/lib/vmware-vmca/bin/certool --genkey --privkey=/tmp/wcp.priv --pubkey=/tmp/wcp.pub
Status : Successroot@localhost [ /tmp ]# /usr/lib/vmware-vmca/bin/certool --gencert --privkey=/tmp/wcp.priv --cert /tmp/wcp.crt --Name=wcp --config /tmp/certool.cfg
Using config file : /tmp/certool.cfg
Status : Successroot@localhost [ /tmp ]# /usr/lib/vmware-vmafd/bin/dir-cli service list
Enter password for administrator@vsphere.local: 
1. machine-4b340ebe-d18a-427a-b130-d92673fd97fd
2. vsphere-webclient-4b340ebe-d18a-427a-b130-d92673fd97fd
3. vpxd-4b340ebe-d18a-427a-b130-d92673fd97fd
4. vpxd-extension-4b340ebe-d18a-427a-b130-d92673fd97fd
5. hvc-4b340ebe-d18a-427a-b130-d92673fd97fd
6. wcp-4b340ebe-d18a-427a-b130-d92673fd97fd# 停止服务
root@localhost [ /var/log/vmware/vpxd ]# service-control --stop --all
Operation not cancellable. Please wait for it to finish...
Performing stop operation on service observability...
Successfully stopped service observability
Performing stop operation on service vmware-pod...
Successfully stopped service vmware-pod
Performing stop operation on service vmware-vdtc...
Successfully stopped service vmware-vdtc
Performing stop operation on profile: ALL...
Successfully stopped service vmware-vmon
Successfully stopped profile: ALL.
Performing stop operation on service vmcad...
Successfully stopped service vmcad
Performing stop operation on service vmdird...
Successfully stopped service vmdird
Performing stop operation on service vmafdd...
Successfully stopped service vmafdd
Performing stop operation on service lwsmd...
Successfully stopped service lwsmd# 再启动相关服务
root@localhost [ /var/log/vmware/vpxd ]# service-control --start vmafdd
Operation not cancellable. Please wait for it to finish...
Performing start operation on service vmafdd...
Successfully started service vmafdd
root@localhost [ /var/log/vmware/vpxd ]# service-control --start vmdird
Operation not cancellable. Please wait for it to finish...
Performing start operation on service vmdird...
Successfully started service vmdird
root@localhost [ /var/log/vmware/vpxd ]# service-control --start vmcad
Operation not cancellable. Please wait for it to finish...
Performing start operation on service vmcad...
Successfully started service vmcad# 更新证书
root@localhost [ /tmp ]# /usr/lib/vmware-vmafd/bin/dir-cli service update --name wcp-4b340ebe-d18a-427a-b130-d92673fd97fd --cert /tmp/wcp.crt
Enter password for administrator@vsphere.local: 
Service [wcp-4b340ebe-d18a-427a-b130-d92673fd97fd] updated successfully
root@localhost [ /tmp ]# /usr/lib/vmware-vmafd/bin/vecs-cli entry delete --store wcp --alias wcp
Warning: This operation will delete entry [wcp] from store [wcp]
Do you wish to continue? Y/N [N] 
y
Deleted entry with alias [wcp] in store [wcp] successfullyroot@localhost [ /tmp ]# /usr/lib/vmware-vmafd/bin/vecs-cli entry create --store wcp --alias wcp --cert /tmp/wcp.crt --key /tmp/wcp.priv
Entry with alias [wcp] in store [wcp] was created successfully # 启动服务
root@localhost [ /tmp ]# service-control --start --all# 查看证书时间更新了
root@localhost [ ~ ]# for store in $(/usr/lib/vmware-vmafd/bin/vecs-cli store list | grep -v TRUSTED_ROOT_CRLS); do echo "[*] Store :" $store; /usr/lib/vmware-vmafd/bin/vecs-cli entry list --store $store --text | grep -ie "Alias" -ie "Not After";done;
[*] Store : MACHINE_SSL_CERT
Alias :	__MACHINE_CERTNot After : May 11 08:44:26 2025 GMT
[*] Store : TRUSTED_ROOTS
Alias :	6f6ae78eb3a9abdbc7bf43797b765e62851a6af6Not After : May 25 02:23:47 2031 GMT
[*] Store : machineAlias :	machineNot After : May 25 02:23:47 2031 GMT
[*] Store : vsphere-webclient
Alias :	vsphere-webclientNot After : May 25 02:23:47 2031 GMT
[*] Store : vpxd
Alias :	vpxdNot After : May 25 02:23:47 2031 GMT
[*] Store : vpxd-extension
Alias :	vpxd-extensionNot After : May 25 02:23:47 2031 GMT
[*] Store : hvc
Alias :	hvcNot After : May 25 02:23:47 2031 GMT
[*] Store : data-encipherment
Alias :	data-enciphermentNot After : May 25 02:23:47 2031 GMT
[*] Store : APPLMGMT_PASSWORD
Alias :	location_password_default
[*] Store : SMS
Alias :	sms_self_signedNot After : May 30 02:28:11 2031 GMT
[*] Store : wcp
Alias :	wcpNot After : May 11 08:50:55 2025 GMT

3. 参考KB

https://kb.vmware.com/s/article/2112277

https://kb.vmware.com/s/article/2015600lang=zh_CN

https://kb.vmware.com/s/article/2097936lang=zh_cn

https://medium.com/@ITsolutions/vmware-vcenter-certificate-replacement-7d2e7fa3fb89

https://captainvops.com/2022/12/16/vcenter-8-machine-ssl-certificate-management/

https://vninja.net/2022/08/08/expired-vmware-vcenter-7-certificates/

4. 命令

# 开启sftp
chsh -s /bin/bash root查看CA证书有多少
/usr/lib/vmware-vmafd/bin/dir-cli trustedcert listroot@localhost [ ~ ]# /usr/lib/vmware-vmafd/bin/dir-cli trustedcert list
Enter password for administrator@vsphere.local: 
Number of certificates:	1
#1:
CN(id):		3AEF9845A3E59122EDCB50C946C7886AFBB3D211
Subject DN:	CN=CA, DC=vsphere, DC=local, C=US, ST=California, O=localhost, OU=VMware Engineering
CRL present:	yes# 导出CA证书
are-vmafd/bin/dir-cli trustedcert get --id A35412348D33EA5EB11E66EF901A1F8D99B0465 --outcert /tmp/vmca_root.cer# 查看证书情况
for store in $(/usr/lib/vmware-vmafd/bin/vecs-cli store list | grep -v TRUSTED_ROOT_CRLS); do echo "[*] Store :" $store; /usr/lib/vmware-vmafd/bin/vecs-cli entry list --store $store --text | grep -ie "Alias" -ie "Not After";done;root@localhost [ ~ ]# for store in $(/usr/lib/vmware-vmafd/bin/vecs-cli store list | grep -v TRUSTED_ROOT_CRLS); do echo "[*] Store :" $store; /usr/lib/vmware-vmafd/bin/vecs-cli entry list --store $store --text | grep -ie "Alias" -ie "Not After";done;
[*] Store : MACHINE_SSL_CERT
Alias :	__MACHINE_CERTNot After : May 11 08:44:26 2025 GMT
[*] Store : TRUSTED_ROOTS
Alias :	6f6ae78eb3a9abdbc7bf43797b765e62851a6af6Not After : May 25 02:23:47 2031 GMT

5. 报错

5.1. Error Failed to start vmon services.vmon-cli RC=1

When you go to read the “certificate-manager.log”, you see an entry like this:

Error Failed to start vmon services.vmon-cli RC=1

After a lot of searching on the internet, I sum up with this good article which helps me to solve my problem. The procedure is very simple, you just need to change the file permission of /etc/vmware/.buildInfo from 640 back to 444, SSH to your vCenter Server with root user and type following commands:

shell
chmod 444 /etc/vmware/.buildInfo

https://kb.vmware.com/s/article/2150057lang=zh_CN

5.2. 脚本执行之后卡在85%

这里大概率可能是证书里面的FQDN和主机不匹配,又或者是主机解析FQDN有问题。

https://blog.csdn.net/CrossProblems/article/details/135395563

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/487729.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

【合作原创】使用Termux搭建可以使用的生产力环境(五)

前言 在上一篇【合作原创】使用Termux搭建可以使用的生产力环境(四)-CSDN博客我们讲到了如何让proot-distro中的Debian声音驱动正常,将我们的系统备份后,通过VNC客户端连接到VNC服务器,这一篇我们来讲一下xfce桌面的美…

uniapp -- 实现页面滚动触底加载数据

效果 首选,是在pages.json配置开启下拉刷新 {"path": "pages/my/document/officialDocument","style": {"navigationStyle":</

Python之爬虫入门--示例(2)

一、Requests库安装 可以使用命令提示符指令直接安装requests库使用 pip install requests 二、爬取JSON数据 &#xff08;1&#xff09;、点击网络 &#xff08;2&#xff09;、刷新网页 &#xff08;3&#xff09;、这里有一些数据类型&#xff0c;选择全部 &#xff08…

OLLAMA+FASTGPT+M3E 大模型本地化部署手记

目录 1.安装ollama 0.5.1 2.下载大模型 qwen2.5 3b 3.开启WSL 4.更新wsl 5.安装ubuntu 6.docker下载 6.1 修改docker镜像源 6.2 开启WSL integration 7.安装fastgpt 7.1 创建fastgpt文件夹 7.2 下载fastgpt配置文件 8.启动容器 9.M3E下载 9.1 下载运行命令 9.2…

Linux网络基础知识————网络编程

计算机网络的体系结构 网络采用分而治之的方法设计&#xff0c;将网络的功能划分为不同的模块&#xff0c;以分层的形式有机结合在一起 每层实现不同的功能&#xff0c;其内部实现的方法对外部其他层次来说是透明的&#xff0c;每层向上一层提供服务&#xff0c;使用下一层提供…

【数据库】选择题+填空+简答

1.关于冗余数据的叙述中&#xff0c;不正确的是&#xff08;&#xff09; A.冗余的存在容易破坏数据库的完整新 B.冗余的存在给数据库的维护增加困难 C.不应该在数据库中存储任何冗余数据 D.冗余数据是指由基本数据导出的数据 C 2.最终用户使用的数据视图称为&#xff08;&…

unity3d—demo(实现给出图集名字和图片名字生成对应的图片)

目录 实现给出图集名字和图片名字生成对应的图片&#xff1a; 代码示例&#xff1a; dic: 键 是图集名称 值是一个字典 该字典键是图片名称 值是图片&#xff0c;结构如图&#xff1a; 测试代码&#xff1a; 结果&#xff1a; SpriteRenderer 讲解&#xff1a; Resour…

jmeter 提取数据写入文件

BeanShell PostProcessor FileWriter file new FileWriter("E:\\IOT\\cui家庭中心\\v3.8.0\\123.txt",true); BufferedWriter out new BufferedWriter(file); out.write(vars.get("localKey")"\n"); log.info("到这里了吗"); out.c…

Linux多进程开发-常用命令

进程 进程是计算机中正在运行的程序的实例。每个进程都有自己的地址空间、内存、文件和设备、线程以及其他系统资源。操作系统通过调度和管理进程来实现多任务处理&#xff0c;使得多个进程可以同时运行并与用户交互。在操作系统中&#xff0c;进程是基本的资源分配单位&#x…

Linux下nginx环境的搭建

1.Nginx的下载 nginx官网&#xff1a;nginx: download nginx的工作原理请移步&#xff1a; 2.nginx安装 2.1.上传文件 将nginx包上传到 /usr/local/src 下 如果你没有使用xftp的话&#xff0c;使用 rz -y 命令上传 下载依赖&#xff1a; yum install lrzsz 输入命令 r…

支持图像和视频理解多模态开源大模型:CogVLM2 CogVLM2-Video

CogVLM2和CogVLM2-Video是新一代的开源模型&#xff0c;支持图像和视频理解&#xff0c;具有显著的性能提升。最近发布的更新包括CogVLM2论文的发表、在线演示和对视频理解的支持&#xff0c;能够处理最多1分钟的视频。新模型支持中英文&#xff0c;文本长度可达8K&#xff0c;…

vue中验证码的实现方式

在写登录页的时候有的系统会让你也进行一下验证码绘制&#xff0c;那么验证码如何实现的呢&#xff1f;我在写登录页的时候通过将登录框&#xff0c;验证码分开页面来写&#xff0c;最后将它们变成标签来导入到我的样式页面中&#xff0c;这样写不仅方便&#xff0c;更容易修改…

Java多进程多线程处理文件

Java多进程多线程处理文件 在现代软件开发中&#xff0c;处理大量或大型文件是一个常见挑战。Java提供了多种机制来处理文件&#xff0c;包括单线程和多线程方式。本文将深入探讨如何使用Java中的多进程和多线程技术来提高文件处理的效率和性能。 目录 引言Java中的进程与线程…

网页核心页面设计(第5章)

一、登录页面 <!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><meta http-equiv"X-UA-Compatible" content"IEedge"><meta name"viewport" content"widthdevice-widt…

前端成长之路:HTML(2)

HTML中有两个非常重要的标签——表格和表单&#xff0c;在介绍之前需要先了解表格和表单的区别&#xff1a;表格是用于展示数据的&#xff1b;表单是用于提交数据的。本文主要介绍表格。 表格标签 表格主要是用于显示、展示数据的&#xff0c;并非是页面布局。它可以使本来难…

Leecode刷题C语言之骑士拨号器

执行结果:通过 执行用时和内存消耗如下&#xff1a; 代码如下&#xff1a; #define MOD 1000000007int knightDialer(int n) {int moves[10][4] {{4, 6, -1, -1},{6, 8, -1, -1},{7, 9, -1, -1},{4, 8, -1, -1},{3, 9, 0, -1},{-1, -1, -1, -1},{1, 7, 0, -1},{2, 6, -1, -…

HTML颜色-HTML脚本

HTML脚本 js使得HTML页面具有更强的动态和交互性 HTML<script>标签 标签用于定义客户端脚本&#xff0c;比如javascript 可包含脚本语句&#xff0c;也可以通过src属性指向外部的脚本文件 JavaScript最常用于图片操作&#xff0c;表单验证以及动态的内容更新 HTML<n…

【sgUploadImage】自定义组件:基于elementUI的el-upload封装的上传图片、相片组件,适用于上传缩略图、文章封面

sgUploadImage源码 <template><div :class"$options.name"><ul class"uploadImages"><liclass"uploadImage"v-loading"loadings[i]"v-for"(a, i) in uploadImages":key"i"click"click…

Ubuntu 22.04加Windows AD域

说明&#xff1a;   Ubuntu 22.04系统通过realmd&#xff0c;sssd加入到 Active Directory 域&#xff0c;并为域用户配置sudo权限。同时为方便用户使用为Ubuntu系统安装wps与sogou中文输入法。 1. Ubuntu 22.04加入Windows AD域 1.1 首先配置网络&#xff0c;Ubuntu系统能…

视频中的某些片段如何制作GIF表情包?

动态表情包&#xff08;GIF&#xff09;已经成为我们日常沟通中不可或缺的一部分。GIF&#xff08;Graphics Interchange Format&#xff09;&#xff0c;即图形交换格式&#xff0c;是一种支持多帧图像和透明度的位图文件格式。它最初由 CompuServe 公司在 1987 年推出&#x…