mirror of https://github.com/lukechilds/node.git
Browse Source
Support building and running with FIPS-compliant OpenSSL. The process is following: 1. Download and verify `openssl-fips-x.x.x.tar.gz` from https://www.openssl.org/source/ 2. Extract source to `openssl-fips` folder 3. ``cd openssl-fips && ./config fipscanisterbuild --prefix=`pwd`/out`` (NOTE: On OS X, you may want to run ``./Configure darwin64-x86_64-cc --prefix=`pwd`/out`` if you are going to build x64-mode io.js) 4. `make -j && make install` 5. Get into io.js checkout folder 6. `./configure --openssl-fips=/path/to/openssl-fips/out` 7. Build io.js with `make -j` 8. Verify with `node -p "process.versions.openssl"` (`1.0.2a-fips`) Fix: https://github.com/joyent/node/issues/25463 PR-URL: https://github.com/nodejs/io.js/pull/1890 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>v2.3.1-release
8 changed files with 112 additions and 3 deletions
@ -0,0 +1,15 @@ |
|||
#!/bin/sh |
|||
ARGS= |
|||
CXX=${CXX:-g++} |
|||
|
|||
while [ "x$1" != "x" ]; do |
|||
ARG=$1 |
|||
shift |
|||
case $ARG in |
|||
*fips_premain.c) ARGS="$ARGS -x c $ARG -x none";; |
|||
*) ARGS="$ARGS $ARG";; |
|||
esac |
|||
done |
|||
|
|||
echo $CXX $ARGS |
|||
${CXX} $ARGS |
@ -0,0 +1,8 @@ |
|||
#!/bin/sh |
|||
|
|||
# NOTE: Just a wrapper around normal fipsld |
|||
FIPSLD=$1 |
|||
shift |
|||
|
|||
DIR=`dirname $0` |
|||
FIPSLD_CC=$DIR/fipscc $FIPSLD $@ |
Loading…
Reference in new issue