Certificate deletion in SDDC Manager fails with error "HTTP Status 400 – Bad Request"
search cancel

Certificate deletion in SDDC Manager fails with error "HTTP Status 400 – Bad Request"

book

Article ID: 451855

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer

Issue/Introduction

  • Attempting to delete an unnecessary certificate using the following API, according to the procedures documented in KB#406755 and TechDocs:
    DELETE /v1/sddc-manager/trusted-certificates/{alias}
  • The following error is observed after executing the API:
    <!doctype html><html lang=\"en\"><head><title>HTTP Status 400 – Bad Request</title><style>
  • The entered alias string contains characters that are not URL-encoded, such as spaces or parentheses.

Environment

VMware SDDC Manager

Cause

The error occurs because the alias string contains characters that require URL encoding but were not encoded.

Resolution

URL-encode the alias string and retry the API execution.