Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add Gateshead chain certificate, update docs for PKCS #7 #2937

Merged
merged 3 commits into from
Mar 28, 2024

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Mar 28, 2024

The most recent production deploy failed with the following error -

  aws:cloudfront:Distribution (planningservices.gateshead.gov.uk-cdn):
    error: 1 error occurred:
    	* creating CloudFront Distribution: InvalidViewerCertificate: The certificate that is attached to your distribution was not issued by a trusted Certificate Authority. For more details, see: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-requirements
    	status code: 400, request id: 03686aca-301f-409d-9262-42ebad2767e0

This indicates that a chain certificate is required. Gateshead supplied a .pem without chain/root certificate as well as a .p7b which did include the chain certificates. Both passed the manual tests we use on AWS without issue - the failure is only picked up when the certificates are actually deployed to a distribution it seems.

I think the lesson is - if chain certs are sent across, we should always require them. I've added an explicit comment to this effect in the docs.

Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tricky! Thanks for docs & new command 👍

@DafyddLlyr DafyddLlyr marked this pull request as ready for review March 28, 2024 10:46
@DafyddLlyr DafyddLlyr merged commit f1f203a into main Mar 28, 2024
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/gateshead-chain-cert branch March 28, 2024 10:52
Copy link

Removed vultr server and associated DNS entries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants