forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: support FIPS mode of OpenSSL
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` 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` Fix: nodejs/node-v0.x-archive#25463
- Loading branch information
Showing
8 changed files
with
108 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Building io.js with FIPS-compliant OpenSSL | ||
|
||
It is possible to build io.js with [OpenSSL FIPS module][0]. | ||
|
||
Instructions: | ||
|
||
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` | ||
|
||
[0]: https://www.openssl.org/docs/fips/fipsnotes.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
ARGS= | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
# NOTE: Just a wrapper around normal fipsld | ||
FIPSLD=$1 | ||
shift | ||
|
||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
FIPSLD_CC=$DIR/fipscc $FIPSLD $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters