CodeSign Project has Exceeded the Maximum Object Count
Symptom
In Code Sign Manager Self-Hosted, there is a default configuration (Global) that represents the maximum number of Environments that a given CodeSign project can have. This global configuration is hidden from all UI and console views, but is accessible through the API.
If a customer encounters the following error (or similar) when using cspconfig.exe -listobjects or pkcs11config.exe -listobjects, they have exceeded this default maximum:
“1-122 out of 122
WARNING: Some objects are not available because the maximum object count was exceeded.
SUCCESS: 13 certificates, 109 public keys”
Environment
26.1 TPP/TLSPDC Code Signing
This applies to all Code Sign Manager, Self-Hosted environments including 26.1.
Cause
The global configuration for MaxEnvironmentCount is only set to 100 by default, with no way to control this setting in the UI or Configuration Console.
Resolution
In order to resolve this, the customer can run the following API call to retrieve all the current global configuration:
GET https://codesign.venafi.example/vedsdk/Codesign/GetGlobalConfiguration
The results will include an attribute for “MaxEnvironmentCount”, set at 100. Copy all the results, while increasing the “MaxEnvironmentCount” (200 may be a good place to start), into a new API call to POST the values back into the global configuration:
POST https://codesign.venafi.example/vedsdk/Codesign/SetGlobalConfiguration
Now, you can run the GET Codesign/GetGlobalConfiguration command again to ensure the value was set properly. Try the cspconfig.exe -listobjects or pkcs11config.exe -listobjects commands again to ensure the limit is no longer causing issues.