#syswidecas — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #syswidecas, aggregated by home.social.
-
⚠️ Deprecation warning
I’ve deprecated @small-tech/syswide-cas – the fork of the syswide-cas module I was maintaining as the original is unmaintained (and undeprecated) – on engines >=24.5.0 as node:tls now has a setDefaultCACertificates() method you can use natively and the module is no longer required.
https://www.npmjs.com/package/@small-tech/syswide-cas
If you’re running node <24.5.0, you shouldn’t notice anything. If you’re running 24.5.0+, you should notice an unsupported engine warning. If you then upgrade to 8.0.0, you should notice a deprecation warning along with the instructions in the readme/change log of version 8.0.0 telling you how you can drop this module and migrate to the native feature.
To migrate, e.g.,
```js
import SyswideCas from '@small-tech/syswide-cas'
SyswideCas.addCAs(myCACertificateFilePath)
```Becomes:
```js
import tls from 'node:tls'
tls.setDefaultCACertificates([...tls.getCACertificates('default'), myCACertificatePEM])
```💡 Note that the certificate is passed in PEM format to the node:tls method.
#nodeJS #TLS #SSL #syswideCas #deprecation #node24 #JavaScript #web #server #dev
-
🥳 @small-tech/syswide-cas v7.0.2 released
Enables Node.js to use custom Certificate Authorities (CAs) alongside the bundled root CAs.
https://codeberg.org/small-tech/syswide-cas#readme
• Drops legacy Node support
• Is now ESM
• Improved code quality
• Added TypeScript type informationFull change log: https://codeberg.org/small-tech/syswide-cas/src/branch/main/CHANGELOG.md
Enjoy!
💕
#SmallTech #releases #syswideCAs #TLS #NodeJS #CertificateAuthorities