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

[Miniflare 3] Split certificates from NODE_EXTRA_CA_CERTS #637

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

mrbbot
Copy link
Contributor

@mrbbot mrbbot commented Jul 24, 2023

If NODE_EXTRA_CA_CERTS contains multiple certificates, they need to be split before being passed to workerd. This change fixes that, and adds a test for NODE_EXTRA_CA_CERTS handling in general as promised.

If `NODE_EXTRA_CA_CERTS` contains multiple certificates, they need to
be split before being passed to `workerd`. This change fixes that,
and adds a test for `NODE_EXTRA_CA_CERTS` handling in general.
@mrbbot mrbbot requested a review from a team July 24, 2023 10:50
@changeset-bot
Copy link

changeset-bot bot commented Jul 24, 2023

⚠️ No Changeset found

Latest commit: 9415e92

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mrbbot mrbbot merged commit 1c25f30 into tre Jul 24, 2023
@mrbbot mrbbot deleted the bcoll/tre-fix-cert-bundles branch July 24, 2023 12:32
trustedCertificates.push(extra);
// Split bundle into individual certificates and add each individually:
// https://github.com/cloudflare/miniflare/pull/587/files#r1271579671
const pemBegin = "-----BEGIN";
Copy link
Member

Choose a reason for hiding this comment

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

Does PEM actually specify exactly 5 - and no whitespace? I've always assumed the format was looser than that but I guess I don't know.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

3 participants