Skip to content

feat: load full certificate bundles from NODE_EXTRA_CA_CERTS - #16782

Merged
cirospaciari merged 1 commit into
oven-sh:mainfrom
ShlomoCode:main
Feb 12, 2025
Merged

cirospaciari merged 1 commit into
oven-sh:mainfrom
ShlomoCode:main

Conversation

@ShlomoCode

@ShlomoCode ShlomoCode commented Jan 27, 2025 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Closes #13867

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

I added tests.

P.S.

Inspired by Node.js' approach (https://github.com/nodejs/node/blob/main/src/crypto/crypto_context.cc#L215-L236 - https://github.com/nodejs/node/blob/main/src/crypto/crypto_context.cc#L565-L577)

@ShlomoCode ShlomoCode closed this Jan 27, 2025
@ShlomoCode ShlomoCode reopened this Jan 27, 2025
@ShlomoCode
ShlomoCode marked this pull request as ready for review February 4, 2025 05:22
@ShlomoCode
ShlomoCode marked this pull request as draft February 5, 2025 12:56
@ShlomoCode
ShlomoCode marked this pull request as ready for review February 5, 2025 14:44
@ShlomoCode

Copy link
Copy Markdown
Contributor Author

@cirospaciari Would you mind taking a look? Thank you!

@cirospaciari cirospaciari left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good only 1 comment, and I would ask for tests using tls module too

Comment thread packages/bun-usockets/src/crypto/root_certs.cpp Outdated
Comment thread packages/bun-usockets/src/crypto/root_certs.cpp Outdated
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.

NODE_EXTRA_CA_CERTS does not work with certificate bundle pem files (it does work with node)

2 participants