ONTAP S3/Trident Server CA Certificate Renewal Fails to Add SAN
Applies to
- ONTAP 9.13.1P7 and later
- S3 Object Store Server
- Kubernetes image registry using ONTAP S3 backend
Issue
After renewing the S3/Trident server CA certificate on ONTAP, the OpenShift image registry is unavailable due to certificate validation errors.
The OpenShift platform requires the certificate to include a Subject Alternative Name (SAN) field, but the renewed certificate is missing this extension.
# cat s3_prod_cert.txt | awk '/-----BEGIN CERTIFICATE-----/,/-----END CERTIFICATE-----/' | openssl x509 -noout -issuer -subject -ext subjectAltNameissuer=CN=s3-prod.112.up.gov.in,C=USsubject=CN=s3-prod.112.up.gov.in,C=USNo extensions in certificate# cat s3_prod_cert.txt | awk '/-----BEGIN CERTIFICATE-----/,/-----END CERTIFICATE-----/' | certexplorer -f issuer,subject,sanIssuer: CN=s3-prod.112.up.gov.in,C=USSubject: CN=s3-prod.112.up.gov.in,C=USSubjectAlternativeName:OpenShift registry pod log:tls: failed to verify certificate: x509: certificate relies on legacy CommonName field, use SANs instead
