Difference between revisions of "InvalidViewerCertificate"

From wikieduonline
Jump to navigation Jump to search
Line 22: Line 22:
 
* {{CloudFront}}
 
* {{CloudFront}}
 
* {{Terraform CloudFront}}
 
* {{Terraform CloudFront}}
 +
 +
[[Category:Terraform]]
 +
[[Category:AWS]]

Revision as of 17:15, 29 September 2021

╷
│ Error: error creating CloudFront Distribution: InvalidViewerCertificate: The specified SSL certificate doesn't exist, isn't in us-east-1 region, isn't valid, or doesn't include a valid certificate chain.
│       status code: 400, request id: 08cbb95c-7431-4443-897f-394b6e8386c3
│
│   with module.cdn.aws_cloudfront_distribution.this,
│   on .terraform/modules/pathtofile.tf line 8, in resource "aws_cloudfront_distribution" "this":
│    8: resource "aws_cloudfront_distribution" "this" {
│
╵


https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-invalid-viewer-certificate/

  • The certificate must be imported in the US East (N. Virginia) Region.
  • The certificate must be 2048 bits or smaller.
  • The certificate must not be password-protected.
  • The certificate must be PEM encoded.



See also

Advertising: