From bb173f931ae85b464e901806f15dcc219dec6b73 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Tue, 18 Oct 2016 16:35:22 +1100 Subject: [PATCH] crypto: fix openssl.cnf FIPS handling & testing * Add documentation for `--openssl-conf=file`. * Fix openssl.cnf loading and OpenSSL init ordering * Fix FIPS tests so `OPENSSL_CONF` is not longer usable but `--openssl-conf` is PR-URL: https://github.com/nodejs/node-private/pull/82 Reviewed-By: Shigeki Ohtsu Reviewed-By: Ben Noordhuis --- doc/api/cli.md | 10 +++++++++ doc/node.1 | 6 ++++++ src/node.h | 7 ++----- src/node_crypto.cc | 9 ++++++-- src/node_internals.h | 4 ++++ test/parallel/test-crypto-fips.js | 35 ++++++++++++++++++++++++------- 6 files changed, 57 insertions(+), 14 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 221d0c631a26e9..13d4df49d8b62a 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -234,6 +234,16 @@ Force FIPS-compliant crypto on startup. (Cannot be disabled from script code.) (Same requirements as `--enable-fips`) +### `--openssl-config=file` + + +Load an OpenSSL configuration file on startup. Among other uses, this can be +used to enable FIPS-compliant crypto if Node.js is built with +`./configure --openssl-fips`. + + ### `--icu-data-dir=file`