⚠️ 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