Generating CSR certificate using VCF Fleet Manager marks IP address as DNS when entering in IP address in the SAN
search cancel

Generating CSR certificate using VCF Fleet Manager marks IP address as DNS when entering in IP address in the SAN

book

Article ID: 421072

calendar_today

Updated On:

Products

VCF Operations VMware vSphere ESXi

Issue/Introduction

  • Generating Certificate Signing Request (CSR) via Fleet Manager UI as outlined in Replace a Certificate with a CA-Signed Certificate might result in an error banner, stating:

    CSR generation for appliance <appliance_FQDN> has failed. undefined.

  • The generation still succeeds, but in the resulting certificate the IP address is added to the Subject Alternative Names field as DNS attribute.
  • /var/log/vrlcm/vmware_vrlcm.log in the Fleet Management appliance may contain a misleading error that the certificate is not signed:
    <time stamp> INFO vrlcm[1338] [pool-3-thread-18] [c.v.v.l.p.c.v.d.h.VRNIUtils]  -- Response code - 400 and data - {"code":400,"message":"Bad Request","details":[{"code":400,"message":"The certificate is not signed by CA certificate provided. Please verify and try again.","target":[]}]}
  • When reviewing the certificate (e.g. using openssl x509) shows the IP addresses listed as DNS attribute.

Environment

  • VCF Operations 9.0.x
  • VCF Operations 9.0.2

Cause

VCF Fleet Management 9.0.x UI does not have an option to distinguish between DNS and IP address types in the SAN field, it defaults all entries to DNS.

Resolution

To work around this limitation, use this internal private API in Fleet Manager instead:

  1. Access the Fleet Management API as per KB How to Authorize VCF Operations Fleet Management API.
  2. Select private-internal-API from the drop down box.
  3. Navigate to the Locker Certificates Controller API → POST /lcm/locker/api/v3/certificates/csr → Try it out.
  4. Fill in the required details and specify the IP address as IP.

Notes:

  • The Tenant field is not required, no need to popultate it.
  • Use the Host value field to add the DNS entries.

Additional Information

VMware engineering are aware of this and actively working on changing the UI to allow for IP addresses to be specified as such (e.g. by providing a dedicated field for them) in later VCF versions.