VCF Automation Certificate Replacement - "CSR Not Generated" Error
search cancel

VCF Automation Certificate Replacement - "CSR Not Generated" Error

book

Article ID: 458291

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

Administrators encounter a "csr not generated" or "certificate.replace.failed" error when attempting to apply a new certificate to the VMware Cloud Foundation (VCF) Automation appliance using the standard replacement workflow.
During the process, the appliance fails to recognize, validate, or apply the imported .cer file to the VCF Automation component.

Environment

VCF 9.1.x

Cause

This error occurs because the native certificate replacement workflow (using the "Replace" button in Aria Suite Lifecycle or VCF Fleet Management) requires a Certificate Signing Request (CSR) and private key to have been generated directly by the appliance for that specific component.
When a CSR is generated natively via the UI, the system securely stores the corresponding Private Key and maps it to a specific "CSR ID".
If the certificate and private key were generated externally (e.g., an OpenSSL-generated Wildcard or multi-SAN certificate) or generated for a completely different component like VCF Operations, the system lacks the matching private key for Automation.
Because of this missing private key mapping, the system blocks the certificate application.

Resolution

To resolve this issue, bypass the native CSR generation and replacement workflow entirely. Instead, use the Import Certificate workflow with a fully assembled PEM file.

Assemble the complete certificate chain and the custom private key into a single text file.
Ensure the custom private key is in PKCS#8 format.
Construct the PEM file in the following exact order:
-----BEGIN PRIVATE KEY-----
(Your Custom Private Key)
-----END PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
(Server / Appliance Certificate)
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
(Intermediate CA Certificate)
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
(Root CA Certificate)
-----END CERTIFICATE-----
    
Navigate to the Certificate Management UI (e.g., Locker > Certificates or Fleet Management > Certificates).
Import this full PEM bundle directly into the certificate manager.

Additional Information

Importing a complete certificate chain that explicitly includes the private key triggers a different behavior in the platform. Rather than looking for a matching, internally-generated CSR ID, the platform automatically replaces and applies the certificate to the appliance immediately upon successful import. This natively bypasses the CSR requirement and resolves the private key mismatch error.