vCert fails to run on vCenter 9.0.2 with ValueError: not enough values to unpack (expected 2, got 1)
search cancel

vCert fails to run on vCenter 9.0.2 with ValueError: not enough values to unpack (expected 2, got 1)

book

Article ID: 432146

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Trying to run the vCert utility on a vCenter 9.0.2 system results in the following error:

 ~/vCert-6.1.0-20250910 ]# ./vCert.py
Traceback (most recent call last):
  File "/root/vCert-6.1.0-20250910/./vCert.py", line 187, in <module>
    init_environment(args)
  File "/root/vCert-6.1.0-20250910/./vCert.py", line 59, in init_environment
    init_env_host()
  File "/root/vCert-6.1.0-20250910/lib/host_utils.py", line 148, in init_env_host
    smart_card_filter_file = get_smart_card_filter_file()
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/vCert-6.1.0-20250910/lib/host_utils.py", line 502, in get_smart_card_filter_file
    return get_file() if get_file else ''
           ^^^^^^^^^^
  File "/root/vCert-6.1.0-20250910/lib/host_utils.py", line 468, in prop_config_get_file
    config = load_property_file(STS_SERVER_CONFIG_PROPERTY_FILE_PATH)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/vCert-6.1.0-20250910/lib/java_utils.py", line 24, in load_property_file
    keypath, value = line.split('=', 1)
    ^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)    

Environment

Issue was observed with vCenter 9.0.2 (VVF) and vCert 6.1.0-20250910 

Cause

The /usr/lib/vmware-sso/vmware-sts/conf/catalina.properties file was modified with a comment line
 
#Tue Feb 17 19:48:14 UTC 2026
vmidentity.server.connector.ssl.client.auth.protocol=com.vmware.identity.tomcat.ClientAuthHttp11NioProtocol
vmidentity.server.connector.connection-timeout=930000
vmidentity.threadpool.stdexec.minSpareThreads=50
vmidentity.server.connector.ssl.store=MACHINE_SSL_CERT
bio-ssl-clientauth.https.port=3128
vmidentity.server.connector.ssl.client.auth.certificate.keystore.type=VKS
bio-custom.http.port=7080
vmidentity.tomcat.accesslog.pattern=%t %I [Request] &quot;%{User-Agent}i&quot; %{X-Forwarded-For}i/%h\:%{remote}p %l %u to local %{local}p - &quot;%r&quot; %H %m %U%q [Response] %s - %b bytes [Perf] process %Dms / commit %Fms / conn [%X]
vmidentity.server.connector.ssl.proxy-name=
vmidentity.server.connector.ssl.connection-timout=60000
vmidentity.tomcat.accesslog.enabled=true
vmidentity.server.connector.ssl.client.auth.certificate.key.alias=__MACHINE_CERT
vmidentity.server.connector.ssl.localhost.accept-count=200
vmidentity.server.connector.ssl.max-http-header-size=16384
vmidentity.server.connector.accept-count=100
vmidentity.server.connector.ssl.localhost.certificate.keystore.file=MACHINE_SSL_CERT
vmidentity.threadpool.stdexec.maxIdleTime=29700000
vmidentity.threadpool.stdexec.namePrefix=tomcat-http--
bio-ssl-localhost.https.port=7444
vmidentity.tomcat.accesslog.directory=logs/tomcat
base.shutdown.port=-1
vmidentity.tomcat.accesslog.maxDays=-1
vmidentity.server.connector.ssl.protocols=TLSv1.2,TLSv1.3
vmidentity.threadpool.stdexec.maxQueueSize=1024
vmidentity.server.connector.ssl.client.auth.implementation.name=com.vmware.identity.tomcat.ClientAuthSSLImplementation
vmidentity.server.connector.ssl.client.auth.certificate.keystore.file=MACHINE_SSL_CERT
vmidentity.server.connector.ssl.client.auth.cert.verification=required
vmidentity.server.connector.ssl.localhost.protocol=com.vmware.identity.tomcat.VECSAwareHttp11NioProtocol
vmidentity.threadpool.stdexec.maxThreads=150
vmidentity.server.connector.ssl.ciphers=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384:TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256:TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384:TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256:TLS_RSA_WITH_AES_256_GCM_SHA384:TLS_RSA_WITH_AES_128_GCM_SHA256:TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA:TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA:TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA:TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA:TLS_RSA_WITH_AES_256_CBC_SHA:TLS_RSA_WITH_AES_128_CBC_SHA:TLS_AES_256_GCM_SHA384:TLS_AES_128_GCM_SHA256
vmidentity.server.props.driven=true
vmidentity.server.connector.ssl.localhost.implementation.name=com.vmware.identity.tomcat.VECSAwareSSLImplementation
vmidentity.tomcat.accesslog.renameOnRotate=false
vmidentity.server.connector.ssl.localhost.certificate.key.alias=__MACHINE_CERT
vmidentity.tomcat.accesslog.prefix=localhost_access
vmidentity.server.connector.max-keep-alive-requests=100
bio-custom.https.port=8443
vmidentity.server.connector.address=localhost
vmidentity.server.connector.ssl.localhost.certificate.keystore.type=VKS
vmidentity.server.connector.ssl.client.auth.truststore.file=/usr/lib/vmware-sso/vmware-sts/conf/clienttrustCA.pem
vmidentity.tomcat.accesslog.suffix=.log

Resolution

The issue was fixed in vCert-6.1.1-20260401.zip and is available here:

vCert - Scripted vCenter expired certificate replacement

https://knowledge.broadcom.com/external/article/385107

 

Workaround:

Remove the line with the comment from /usr/lib/vmware-sso/vmware-sts/conf/catalina.properties then vCert will run.

Additional Information

vCert - Scripted vCenter expired certificate replacement