From ed6d47b94444d8c86cc9760ac3e67c8ba10e8164 Mon Sep 17 00:00:00 2001 From: Shigeki Ohtsu Date: Tue, 9 Feb 2016 10:49:37 +0900 Subject: [PATCH] test: enable to work pkcs12 test in FIPS mode The pfx file created by pkcs12 command of openssl causes an error in FIPS mode because its certificate is encrypted with RC2 by default. Adding `-descert` option resolves the error. Fix: https://github.com/nodejs/node/pull/5144 Fix: https://github.com/nodejs/node/pull/5109 PR-URL: https://github.com/nodejs/node/pull/5150 Reviewed-By: Rich Trott --- test/fixtures/keys/Makefile | 1 + test/fixtures/keys/agent1-pfx.pem | Bin 2437 -> 2437 bytes test/parallel/test-tls-pfx-gh-5100-regr.js | 5 ----- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/test/fixtures/keys/Makefile b/test/fixtures/keys/Makefile index 1148e529cd9595..277734aa174562 100644 --- a/test/fixtures/keys/Makefile +++ b/test/fixtures/keys/Makefile @@ -81,6 +81,7 @@ agent1-cert.pem: agent1-csr.pem ca1-cert.pem ca1-key.pem agent1-pfx.pem: agent1-cert.pem agent1-key.pem ca1-cert.pem openssl pkcs12 -export \ + -descert \ -in agent1-cert.pem \ -inkey agent1-key.pem \ -certfile ca1-cert.pem \ diff --git a/test/fixtures/keys/agent1-pfx.pem b/test/fixtures/keys/agent1-pfx.pem index a36e746a72e06e8dd913f335c1e889ae7646513e..b0395eede9c2513f714ac49e0a9d386cc4830da4 100644 GIT binary patch delta 2257 zcmV;?2rl=96NM9ySbqaB4g?5_h$qm|BbqM)0tf(rf(7UV?i!b_D&;ZUCSQHyD=Z9* z?%FdishSNgBGM@s!&f*~F!D++ZUae5FW`n@gF^>x(FBRot{!^1>$a!VFny73H_|n# zqAFpoopygz--(Fn7c!bvJ?$=7h}AA`l)$4)gK0}>^gr(p$bWTo$WY22MGdLy<}t=B z)UbXFUv{>61Dy(3(e2bQL6G9Z`s4=3v{yW$}1;u$%{i4GoNKU~Eg} z+b}zKG3=8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F1Lc3Z!xlE8|C~-MyB|A%jmA;AvleXT|ri=vDF4(^a~V-3Iwx< zr%`GI@`{!xCm`&@?(${3)N6$E$9}idcwG}2$H-9~AtrY9L*f=|`_OrvLVDCRfh1Y) z^Hv^p&Bk6T$-ay}To^VaJHK`ngIzL8%uO^UPQX+hN~MZ%ud0#7pOY&II3keW1VKcO feP#f`Ci@p^lH80~I_(4qINF$R17{|G0s;sCw3Sy9 diff --git a/test/parallel/test-tls-pfx-gh-5100-regr.js b/test/parallel/test-tls-pfx-gh-5100-regr.js index 29b8955c8758d8..865ac2ba3f299a 100644 --- a/test/parallel/test-tls-pfx-gh-5100-regr.js +++ b/test/parallel/test-tls-pfx-gh-5100-regr.js @@ -7,11 +7,6 @@ if (!common.hasCrypto) { return; } -if (common.hasFipsCrypto) { - console.log('1..0 # Skipped: PFX does not work in FIPS mode'); - return; -} - const assert = require('assert'); const tls = require('tls'); const fs = require('fs');