home.social

#syswidecas — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #syswidecas, aggregated by home.social.

fetched live
  1. ⚠️ 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.

    npmjs.com/package/@small-tech/

    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

  2. 🥳 @small-tech/syswide-cas v7.0.2 released

    Enables Node.js to use custom Certificate Authorities (CAs) alongside the bundled root CAs.

    codeberg.org/small-tech/syswid

    • Drops legacy Node support
    • Is now ESM
    • Improved code quality
    • Added TypeScript type information

    Full change log: codeberg.org/small-tech/syswid

    Enjoy!

    💕

    #SmallTech #releases #syswideCAs #TLS #NodeJS #CertificateAuthorities