NSX Certificate was rejected because KeyUsage does not allow key encipherment
search cancel

NSX Certificate was rejected because KeyUsage does not allow key encipherment

book

Article ID: 386448

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

- New CA certificate is generated

- When replacing an expired or expiring certificate with a CA cert we may see Certificate validation failed error.

- To see what that error means, we will need to do a GET API call to validate certificate: GET https://<nsx-mgr>/api/v1/trust-management/certificates/<cert-id>?action=validate

- From the above result we can see the certificate is rejected because: KeyUsage does not allow key encipherment

Environment

VMware NSX

Cause

CA cert needs to have key encipherment parameter enabled under KeyUsage

Resolution

- Need to enable key encipherment parameter under KeyUsage when CA certificate is created/signed

- Once the key encipherment parameter is enabled under KeyUsage, Certificate validation is now successful and the new CA certificate is successfully applied to the node