Unable to replace certificates when using,
# vracli certificate ingress --set your_cert_file.PEM
Prompted to add parameter "--sha256 hash", but does not replace the certificate with the new self-signed custom certificate.
# vracli certificate ingress --set your_cert_file.PEM --sha256 <HASH>
VCF Automation 8.18.x
PEM file has an unbroken line section between certificates,
i.e.,
-----END CERTIFICATE----------BEGIN CERTIFICATE-----
Reformat the unbroken certificate section in the PEM file:
-----END CERTIFICATE----------BEGIN CERTIFICATE-----
To have a break between certificate sections:
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
Re-run the ingress command and ./deploy.sh script to replace the certificate:
# vracli certificate ingress --set your_cert_file.PEM -sha256 <HASH>
To properly ingress the replacement custom certificate, the PEM file must have clear breaks between BEGIN and END certificate sections.
Note the sha256 hash may be the same and no issue when the certificate is renewed and not a new certificate.