Replacing Certificates in SDDC Manager API does not complete and hangs SDDC Manager
search cancel

Replacing Certificates in SDDC Manager API does not complete and hangs SDDC Manager

book

Article ID: 429278

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

Attempting to replace certificates using the SDDC Manager API (as documented in SDDC Manager API > Certificates > Replace Resource Certificates), either through API Explorer or other REST platform, returns a HTTP Code 200 but does not complete and hangs processes in SDDC Manager

Environment

VMware SDDC Manager

Cause

Documentation references for replacing certificates via API are unclear and reference inappropriate formatting of the JSON body for the REST call. 

Resolution

Please use the correctly formatted payload i.e. ONE object per host using one of below formats (Note: replace the values in the below examples with the appropriate values for your environment):

 

Option 1 - Using certificateChain

[
  {
    "resourceFqdn": "sfo-vc01.rainpole.io",
    "certificateChain": "<leaf cert + CA chain in single PEM string>"
  }
]


(or)


Option 2 - Using resourceCertificate + caCertificate:

[
  {
    "resourceFqdn": "sfo-vc01.rainpole.io",
    "resourceCertificate": "<leaf certificate only>",
    "caCertificate": "<CA certificate chain>"
  }
]

Additional Information

"-----BEGIN CERTIFICATE-----\nMIIFq...\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIFq...\n-----END CERTIFICATE-----"