Skip to content

Commit fd5285f

Browse files
committed
doc: format BUILDING.md
1 parent 418932f commit fd5285f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

BUILDING.md

+8
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,7 @@ dynamically linking with OpenSSL 3.0.0 by using the configuration flag
783783
### FIPS support when statically linking OpenSSL
784784

785785
FIPS can be supported by specifying the configuration flag `--openssl-is-fips`:
786+
786787
```console
787788
$ ./configure --openssl-is-fips
788789
$ make -j8
@@ -795,23 +796,30 @@ to include the correct path to fipsmodule.cnf and finally uncomment the fips
795796
section.
796797

797798
We can then run node specifying `--enable-fips`:
799+
798800
```console
799801
$ ./node --enable-fips -p 'crypto.getFips()'
800802
1
801803
```
804+
802805
The above will use the Node.js default locations for OpenSSL 3.0:
806+
803807
```console
804808
$ ./out/Release/openssl-cli version -m -d
805809
OPENSSLDIR: "/nodejs/openssl/out/Release/obj.target/deps/openssl"
806810
MODULESDIR: "/nodejs/openssl/out/Release/obj.target/deps/openssl/lib/openssl-modules"
807811
```
812+
808813
The OpenSSL configuration files will be found in `OPENSSLDIR` directory above:
814+
809815
```console
810816
$ ls -w 1 out/Release/obj.target/deps/openssl/*.cnf
811817
out/Release/obj.target/deps/openssl/fipsmodule.cnf
812818
out/Release/obj.target/deps/openssl/openssl.cnf
813819
```
820+
814821
And the FIPS module will be located in the `MODULESDIR` directory:
822+
815823
```console
816824
$ ls out/Release/obj.target/deps/openssl/lib/openssl-modules/
817825
fips.so

0 commit comments

Comments
 (0)