Already made sure certificate is on N.Virginia region. Also tried typing out the domain name giving this error:
com.amazonaws.AmazonServiceException: 1 validation error detected: Value '*.domainname.com ' at 'serverCertificateId' failed to satisfy constraint: Member must have length less than or equal to 32 (Service: AmazonCloudFront; Status Code: 400;
Still can't figure out the exact problem.
Thanks in advance.
CloudFront supports public key length of 1024 and 2048 bits.
The ACM certificate you have uploaded is of 4096 bit and isn't supported by CloudFront.