dir-cli trustedcert publish command, resulted in a failure. dir-cli failed. Error 1168: Operation failed with error ERROR_NOT_FOUND (1168). /tmp/replace-cert/certificate.ca) existed at the given path and contained the correct Certificate Authority (CA) chain (Intermediate CA to Root CA, without the private key or end-entity certificate). root@xxx [ /tmp/replace-cert ]# /usr/lib/vmware-vmafd/bin/dir-cli trustedcert publish -- cert /tmp/replace-cert/certificate.ca -- chain -- login username@vsphere.local Enter password for username@vsphere.local: dir-cli failed. Error 1326: Operation failed with error ERROR LOGON FAILURE (1326) root@xxx [ /tmp/replace-cert ]#
Log: /var/log/vmware/vmafdd/vmafdd.log
2025-10-15T17:55:00.261 [vmafdd][ERROR] [Error - 183, lotus/vmafd/server/vmafd/vecsserviceapi.c:193] 2025-10-15T17:55:00.261 [vmafdd][INFO] VecsSrvCreateCertStore: Failed to create Cert Store 2025-10-15T17:55:00.261 [vmafdd][ERROR] [Error - 183, lotus/vmafd/server/vmafd/authservice.c:36] 2025-10-15T17:55:00.261 [vmafdd][ERROR] [Error - 183, lotus/vmafd/server/vmafd/vecsserviceapi.c:193] 2025-10-15T17:55:00.261 [vmafdd][INFO] VecsSrvCreateCertStore: Failed to create Cert Store 2025-10-15T17:55:00.261 [vmafdd][ERROR] [Error - 183, lotus/vmafd/server/vmafd/authservice.c:36] 2025-10-15T17:55:00.261 [vmafdd][ERROR] [Error - 183, lotus/vmafd/server/vmafd/vecsserviceapi.c:193] 2025-10-15T17:55:00.261 [vmafdd][INFO] VecsSrvCreateCertStore: Failed to create Cert Store 2025-10-15T17:55:00.261 [vmafdd][ERROR] [Error - 183, lotus/vmafd/server/vmafd/authservice.c:36]
dir-cli trustedcert publish command was caused by insufficient privileges of the user account executing the script. The issue was resolved by executing the dir-cli trustedcert publish command using the administrator@vsphere.local account.
Steps:
certificate.ca in this case) contains the full Certificate Authority (CA) chain, starting with the Intermediate CA (if applicable) and ending with the Root CA. Confirm it does not include the private key or the Machine SSL (end-entity) certificate itself.dir-cli trustedcert publish command using credentials for the administrator@vsphere.local user :/usr/lib/vmware-vmafd/bin/dir-cli trustedcert publish --cert /tmp/replace-cert/certificate.ca --chain --login "administrator@vsphere.local" --password "your_sso_admin_password"administrator@vsphere.local account possesses the inherent, system-level privileges required for such critical operations, bypassing any permission-related restrictions encountered by less-privileged accounts.root@xxx [ /tmp/replace-cert ]# /usr/lib/vmware-vmafd/bin/dir-cli trustedcert publish -- cert /tmp/replace-cert/certificate.ca -- chain -- login administrator@vsphere.localEnter password for administrator@vsphere.local:Certificate published successfullyroot@xxx[ /tmp/replace-cert ]#