Using Custom Domain Wildcard SSL Certificates With Object Storage
I'm trying to use a wildcard SSL certificate with a custom domain and Object Storage bucket, but I'm getting the following error in Cloud Manager when uploading the certificate:
Certificate is not valid for the bucket name. Verify the bucket name is covered by the SANs and/or CN.
Why am I getting this error?
The error you're receiving indicates that the SSL certificate you're using does not have the appropriate Subject Alternative Names (SANs) or Common Name (CN) to cover the bucket name "media".
A wildcard SSL certificate typically covers all subdomains of a domain, but it does not cover arbitrary labels or path components in the URL. In your case, "*.example.com", the SSL certificate may only cover the domain name "example.com" and any specified subdomains, but it does not cover the specific bucket name "media".
To resolve this error, you will need need to obtain a new SSL certificate that includes the specific bucket name "media" as a SAN or CN.
You need to change your bucket label from media to media.example.com
Since the intention is to use this bucket with a custom domain, the bucket must be labeled as your fully qualified domain name, such as assets.example.com.