summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com>2020-12-15 22:34:41 +0100
committerDr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com>2021-04-29 11:26:57 +0200
commitb6821df0d0713e05af338f5a7dba51a63f2c79b9 (patch)
treea665b90a16e89106f94d938fffded570087f3026
parent59cf2869199b695cace97869c578d40fafff24c6 (diff)
Configure/Makefile: use the correct openssl app for FIPS installation
The `openssl` app was previously called without a path, which would generally invoke the system's copy of the openssl application. Currently, that's most likely an openssl version 1.1.1 application, which does not recognize the `fipsinstall` command and terminates with an error message. Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13684)
-rw-r--r--Configurations/unix-Makefile.tmpl3
-rw-r--r--Configurations/windows-makefile.tmpl11
2 files changed, 8 insertions, 6 deletions
diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
index e7287b6290..1f4697f52a 100644
--- a/Configurations/unix-Makefile.tmpl
+++ b/Configurations/unix-Makefile.tmpl
@@ -588,7 +588,8 @@ uninstall_docs: uninstall_man_docs uninstall_html_docs
install_fips: install_sw
@$(ECHO) "*** Installing FIPS module configuration"
@$(ECHO) "fipsinstall $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME).cnf"
- @openssl fipsinstall -module $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME) \
+ @$(PERL) $(BLDDIR)/util/wrap.pl $(BLDDIR)/apps/openssl fipsinstall \
+ -module $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME) \
-out $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME).cnf \
-macopt 'hexkey:$(FIPSKEY)'
diff --git a/Configurations/windows-makefile.tmpl b/Configurations/windows-makefile.tmpl
index 24db68fa06..6e0dd35674 100644
--- a/Configurations/windows-makefile.tmpl
+++ b/Configurations/windows-makefile.tmpl
@@ -472,15 +472,16 @@ uninstall_docs: uninstall_html_docs
install_fips: install_sw
@$(ECHO) "*** Installing FIPS module configuration"
- @$(ECHO) "fipsinstall $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME).cnf"
- @openssl fipsinstall -module $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME) \
- -out $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME).cnf \
+ @$(ECHO) "fipsinstall $(MODULESDIR)\$(FIPSMODULENAME).cnf"
+ @$(PERL) "$(BLDDIR)\util\wrap.pl" "$(BLDDIR)\apps\openssl" fipsinstall \
+ -module "$(MODULESDIR)\$(FIPSMODULENAME)" \
+ -out "$(MODULESDIR)\$(FIPSMODULENAME).cnf" \
-macopt "hexkey:$(FIPSKEY)"
uninstall_fips: uninstall_sw
@$(ECHO) "*** Uninstalling FIPS module configuration"
- @$(ECHO) "$(RM) $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME).cnf"
- @$(RM) $(DESTDIR)$(MODULESDIR)/$(FIPSMODULENAME).cnf
+ @$(ECHO) "$(RM) $(MODULESDIR)\$(FIPSMODULENAME).cnf"
+ @$(RM) "$(MODULESDIR)\$(FIPSMODULENAME).cnf"
install_ssldirs:
@"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(OPENSSLDIR)\certs"