Stale intermediate certificates can accumulate on the Avi Load Balancer Controller during certificate renewal when the certificate chain length is greater than one.
For instance, 1 root + 2 intermediate certificates used for signing application certificate(s).
When a certificate bundle is uploaded, the controller splits the chain and creates separate certificate objects for each certificate. If a certificate with the same CN already exists but has a different fingerprint, a new certificate entry is created instead of replacing the existing one, leading to accumulation of duplicate intermediate certificates
Workaround
Identify and remove unused intermediate certificates as follows:
> show sslkeyandcertificate <certificate name> | grep "serial_number"