selfsigned
5.5.0 · 12 Jan 2026MIT23.1M / weekRepositoryHomepagenpmAtom feed
Upgrading selfsigned From 1.2.0 to 5.5.0
36 releases in betweennotes for 1
- 4+
- changes to make
- 0
- advisories fixed
- 6+
- new
- 2+
- fixes
Counted from 1 of 36 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
Security
- 5.0.0
Now uses Node.js native WebCrypto API instead of JavaScript implementation
- 5.0.0
Better integration with platform security features
- 5.0.0
More secure random number generation
Release by release
5.1.0 – 5.5.04 releases, no release note
- Security
Now uses Node.js native WebCrypto API instead of JavaScript implementation
- Security
Better integration with platform security features
- Security
More secure random number generation
- Breaking
Async-only API: The
generate()function now returns a Promise. Synchronous generation has been removed.
- Security
1.4.0 – 4.0.131 releases, no release note
11 other lines we could not sort, mostly version bumps
- 5.0.0
✅ Added:
@peculiar/x509(551 KB) - 66% smaller! - 5.0.0
✅ Added:
pkijs(1.94 MB, only for PKCS#7 support) - 5.0.0
Bundle size reduced by 66% when not using PKCS#7
- 5.0.0
Old:
const pems = await generate(attrs, { pkcs7: true }); pems.pkcs7 - 5.0.0
New:
const { createPkcs7 } = require('selfsigned/pkcs7'); const pkcs7 = createPkcs7(pems.cert); - 5.0.0
PKCS#7 is now a separate module for better tree-shaking
- 5.0.0
Default key size remains 2048 bits (was incorrectly documented as 1024)
- 5.0.0
PEM output uses
\nline endings (was\r\n) - 5.0.0
Private keys now use PKCS#8 format (
BEGIN PRIVATE KEYinstead ofBEGIN RSA PRIVATE KEY) - 5.0.0
Certificate generation is now fully async using native WebCrypto
8 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.