Certificate chain for imported bundle not as expected
book
Article ID: 404667
calendar_today
Updated On:
Products
VMware Avi Load Balancer
Issue/Introduction
When importing a certificate bundle with the full chain, the chain will not necessarily be preserved.
The certificate chain seen in the UI may be different from the expected chain.
Environment
Any Avi deployment across all supported versions.
Environments with cross-signed certificates are susceptible to this issue.
Cause
Avi uses a custom chaining logic when choosing a parent cert for a given certificate.
Even when the certificate is imported as a bundle, all the certificates in the bundle are imported as separate certificates.
Thus, the signing cert for each will be chosen based on our chaining logic.
The signing cert is chosen based on:
The Common Name of the Issuer cert
Later Expiry Date
Following this logic, for example, if there are 2 Issuer certificates with the Common Name: USERTrust RSA Certification Authority, the one with the later expiry date will be picked.
Once the signing certificate is identified, we verify the correctness internally using openssl: