- Use the correct API endpoint for key import
Instead of the documented URL, use the following endpoint available in the VCF Operations Swagger UI (https://<VCF_OPS_FQDN)/suite-api/doc/swagger-ui.html) :
https://$hostname/suite-api/internal/license-manager/identity/keypair
Using this endpoint allows the private key import to proceed successfully.
- Ensure the private key follows the required PEM format
Although a standard PEM private key file was initially used, the VCF Operations service required the key to be provided in the following PEM structure to include both private and public key.
-----BEGIN PRIVATE KEY-----
<private key>
-----END PRIVATE KEY-----
-----BEGIN PUBLIC KEY-----
<public key>
-----END PUBLIC KEY-----
- Re-run the private key import/update using the updated API endpoint and correct PEM key format.
After making these changes, the key import completes successfully without returning HTTP 500 errors.