Error While Installing Private Key Generated for License File in VMware Cloud Foundation Operations
search cancel

Error While Installing Private Key Generated for License File in VMware Cloud Foundation Operations

book

Article ID: 419598

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  • Unable to use API for POST /internal/license-manager/identity/keypair Update the keypair for the license manager identity. This will be used for critical infra/private registration mode

The error displayed is :

{
"type": "Error",
"message": "Internal Server error, cause unknown.",
"httpStatusCode": 500,
"apiErrorCode": 500
}

 

  • Messages similar to the following are found in the log file /storage/log/vcops/log/license-usage-plugin.log:

2025-11-14T09:37:41.600Z ERROR license-usage-plugin 5731 [ops@4413 threadId="6320" threadName="ServerConnection on port 10000 Thread 9"] [com.vmware.vrops.license.usage.server.LicenseUsageServer.updateKeypair] - Failed to get update the key pair for critical infra java.lang.IllegalArgumentException: unknown object in getInstance: org.bouncycastle.openssl.PEMKeyPair

2025-11-14T09:37:41.603Z ERROR license-usage-plugin 5731 [ops@4413 threadId="6320" threadName="ServerConnection on port 10000 Thread 9"] [com.vmware.vrops.license.usage.server.LicenseUsageInterfaceJavaProxy.invoke] - LicenseUsageInterfaceSpringProxy : Exception thrown by the actual source

2025-11-14T09:37:41.604Z ERROR license-usage-plugin 5731 [ops@4413 threadId="6320" threadName="ServerConnection on port 10000 Thread 9"] [com.vmware.vrops.license.usage.utils.LicenseServerExceptionHandler.handleLicenseUsageRuntimeException] - LicenseUsageRuntime : Failed to perform the operation : LicenseUsageInterface.updateKeypair
com.vmware.vrops.license.usage.exception.LicenseUsageRuntimeException: Failed to get update the key pair for critical infra

Environment

VCF Operations 9.0

Resolution

  1. Ensure the Pem file is constructed in the correct order (Private Key first and Public key second)

    For example:

    ----BEGIN PRIVATE KEY-----
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxx==
    -----END PRIVATE KEY-----
    -----BEGIN PUBLIC KEY-----
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxx==

    -----END PUBLIC KEY-----  

Additional Information

VCF 9.0 Licensing - Private License Files