Commit b6d6c6c38a2 for nodejs
commit b6d6c6c38a2f9f01c68f0034d05fa4f0b04251bc
Author: Filip Skokan <panva.ip@gmail.com>
Date: Wed Nov 11 13:36:30 2026 +0100
test: fix X.509 generation with OpenSSL 4.1 FIPS
Use a passphrase that meets the FIPS provider's minimum for PBKDF2.
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67409
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
Reviewed-By: Jason Zhang <xzha4350@gmail.com>
diff --git a/test/parallel/test-crypto-x509-generate.js b/test/parallel/test-crypto-x509-generate.js
index 9f47f86bafe..98e9419db66 100644
--- a/test/parallel/test-crypto-x509-generate.js
+++ b/test/parallel/test-crypto-x509-generate.js
@@ -389,7 +389,7 @@ for (const [type, options] of [
{
const keys = generateKeyPairSync('ec', { namedCurve: 'P-256' });
- const passphrase = 'secret';
+ const passphrase = 'top secret';
const encryptedPrivateKey = keys.privateKey.export({
type: 'pkcs8',
format: 'pem',