mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 12:04:38 +08:00
3ab736acb8
The `make install_fips` target failed msp@debian:~/src/openssl$ make install_fips *** Installing FIPS module install providers/fips.so -> /opt/openssl-dev/lib/ossl-modules/fips.so *** Installing FIPS module configuration fipsinstall /opt/openssl-dev/ssl/fipsmodule.cnf FATAL: Startup failure (dev note: apps_startup()) for ./apps/openssl ... No such file or directory:crypto/conf/conf_def.c:771:calling stat(fipsmodule.cnf) ... make: *** [Makefile:3341: install_fips] Error 1 because the `openssl fipsinstall` command was loading a previously installed configuration file instead of the copy shipped with the source tree. msp@debian:~/src/openssl$ strace -f make install_fips |& grep openssl.cnf [pid 128683] openat(AT_FDCWD, "/opt/openssl-dev/ssl/openssl.cnf", O_RDONLY) = 3 This issue reveiled a more general problem, which applies to the tests as well: unless openssl is installed, the openssl app must not use any preinstalled configuration file. This holds in particular when the preinstalled configuration file load providers, which caused the above failure. The most consistent way to achieve this behaviour is to set the OPENSSL_CONF environment variable to the correct location in the util/wrap.pl perl wrapper. Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14136) |
||
---|---|---|
.. | ||
perl | ||
add-depends.pl | ||
build.info | ||
cavs-to-evptest.pl | ||
check-format-test-negatives.c | ||
check-format-test-positives.c | ||
check-format.pl | ||
check-malloc-errs | ||
ck_errf.pl | ||
copy.pl | ||
dofile.pl | ||
echo.pl | ||
engines.num | ||
err-to-raise | ||
find-doc-nits | ||
find-unused-errs | ||
fix-deprecation | ||
fix-includes | ||
fix-includes.sed | ||
indent.pro | ||
libcrypto.num | ||
libssl.num | ||
local_shlib.com.in | ||
markdownlint.rb | ||
merge-err-lines | ||
missingcrypto111.txt | ||
missingcrypto-internal.txt | ||
missingcrypto.txt | ||
missingmacro111.txt | ||
missingmacro.txt | ||
missingssl111.txt | ||
missingssl-internal.txt | ||
missingssl.txt | ||
mkbuildinf.pl | ||
mkdef.pl | ||
mkdir-p.pl | ||
mkerr.pl | ||
mknum.pl | ||
mkpod2html.pl | ||
mkrc.pl | ||
mktar.sh | ||
opensslwrap.sh | ||
other-internal.syms | ||
other.syms | ||
providers.num | ||
shlib_wrap.sh.in | ||
su-filter.pl | ||
unlocal_shlib.com.in | ||
withlibctx.pl | ||
wrap.pl |