Reputation: 2672
I have a EV certificate for multiple subdomains for my website. The list of domains allowed are:
cdn.subdomain.mydomain.com
subdomain-staging.mydomain.com
subdomain.mydomain.com
I want to use a Cloudfront CDN with a custom CNAME as cdn.subdomain.mydomain.com
and the EV ssl certificate. But whenever I am trying to import it in AWS Certificate manager, I am getting the following error.
Can anyone help me?
My certificate is like
-----BEGIN CERTIFICATE-----
//CONTENT Intermediate CA Bundle
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
//CONTENT
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
//CONTENT
-----END CERTIFICATE-----
Upvotes: 4
Views: 2001
Reputation: 34704
Split your file into 3 files by the -----BEGIN/END CERTIFICATE-----
lines. Every file should look like:
-----BEGIN CERTIFICATE-----
XXX a lot of base64 data here XXX
-----END CERTIFICATE-----
For each file use:
openssl x509 -in mycert.crt -text -noout
You should get a lot of details about each certificate, including which domains it covers, etc. Only one of those certificates should contain your domain. If you have only one, that's the one you should upload to ACM. If you have more than one with your domain, please put the output of the openssl
command for them here so we can help you figure out why you have more than one. Don't forget to remove the private key, if it's displayed.
Upvotes: 2
Reputation: 372
As per the error which you are facing is not because of you don't know about how to import SSL certificate in AWS certificate manager but due to you are entering more than one SSL certificate or using one/same EV SSL certificate for your multiple sub domains.
EV SSL certificate secures only single domain.
So, in this case you have two options:
Or if you still have confusion about how to import SSL certificate in AWS manager then you should refer http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html
Upvotes: 0