I use S3 to host website and I would like to use SNI support of cloudfront to use SSL, I use below command to generate certificate.
I use below command to upload the certificate to cloudfront
aws iam upload-server-certificate
When I try to set the uploaded certificate I get below error from cloudfront
com.amazonaws.services.cloudfront.model.InvalidViewerCertificateException: The specified SSL certificate doesn’t exist in the IAM certificate store, isn’t valid, or doesn’t include a valid certificate chain. (Service: AmazonCloudFront; Status Code: 400; Error Code: InvalidViewerCertificate; Request ID:
Please let me know anyone could find whats the issue.