Skip to content

feat!: drop bundled CA chain and use the default trust store (2.0.0) - #56

Merged
rkoopmans merged 1 commit into
tinify:masterfrom
rkoopmans:remove-bundled-ca
Nov 18, 2026
Merged

rkoopmans merged 1 commit into
tinify:masterfrom
rkoopmans:remove-bundled-ca

Conversation

@rkoopmans

Copy link
Copy Markdown
Contributor

Removes the bundled CA certificate chain so the client relies on the platform's trust store instead of a snapshot we have to keep updating.

  • Delete src/tinify/cacert.ts (the inlined Mozilla bundle) and update-cacert.sh (the script that regenerated it).
  • Stop passing ca in the client's default request options; TLS verification now uses Node.js's default trust store. rejectUnauthorized: true is unchanged.
  • Bump to 2.0.0 and add a changelog entry.

… 2.0.0

Remove the inlined CA bundle (src/tinify/cacert.ts) and the
update-cacert.sh script that generated it. The client no longer passes a
`ca` option, so TLS verification uses the Node.js default trust store,
which can be extended with NODE_EXTRA_CA_CERTS or switched to the OS
store with --use-system-ca.

BREAKING CHANGE: the client no longer ships its own CA certificates.
@rkoopmans
rkoopmans merged commit 69847aa into tinify:master Nov 18, 2026
25 checks passed
@rkoopmans
rkoopmans deleted the remove-bundled-ca branch November 18, 2026 08:24
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