Reputation: 539
I'm attempting to follow the outline at from the OpenSSL Wiki to build a FIPS 140-2 compliant Ubuntu server and I'm stumbling at a reasonably early stage.
I've a new virtual Ubuntu 14.04.5 server with the default OpenSSH server running (so that I've got remote SSH to the system) and then downloaded the OpenSSL FIPS Object Model (openssl-fips-2.0.14.tar.gz) and OpenSSL (openssl-1.1.0e.tar.gz).
Compiling the FIPS side of things seems straight forward enough:
However, when it comes to then compiling OpenSSL, I run into a problem
make
crypto/err/err_all.c:35:27: fatal error: openssl/fips.h: No such file or directory
# include <openssl/fips.h>
^
compilation terminated.
make[1]: *** [crypto/err/err_all.o] Error 1
make[1]: Leaving directory `/home/user/openssl-1.1.0e'
make: *** [all] Error 2
From this SO post, the author states that he overcame this missing fips.h file by correctly setting an additional parameter to the ./config file, that being "--openssldir" but I've attempted to use both "/home/user/openssl-1.1.0e" as well as the existing "/usr/lib/ssl" (obtained using "openssl version -d") but all to no avail.
Performing a "find / -name fips.h" on my system only shows that file in a couple of places, all of which I've tried to use with the "--openssldir" parameter, but again with no luck...
Can anyone supply any insight as to what I'm doing wrong here?
Upvotes: 0
Views: 1951
Reputation: 539
Ok, so the big gotcha here is that I was using OpenSSL-1.1.0e and not an OpenSSL-1.0.x version. You have to use 1.0.x in order to use the FIPS model. Other than that, following the SO article linked to above worked for me
Upvotes: 0