Skip to content

Commit

Permalink
Patching openssl.cnf to add fips section when needed
Browse files Browse the repository at this point in the history
Signed-off-by: John McCrae <[email protected]>
  • Loading branch information
johnmccrae committed May 15, 2024
1 parent 3f63d30 commit dc0e8d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff --git "a/usr/local/ssl/openssl.cnf" "/c/msys64/usr/local/ssl/openssl.cnf"
diff --git "a/usr/local/ssl/openssl.cnf" "b/usr/local/ssl/openssl.cnf"
index 5340de2..6daaccc 100644
--- "a/usr/local/ssl/openssl.cnf"
+++ "/c/msys64/usr/local/ssl/openssl.cnf"
+++ "b/usr/local/ssl/openssl.cnf"
@@ -75,6 +75,11 @@ activate = 1
[legacy_sect]
activate = 1
Expand Down
4 changes: 3 additions & 1 deletion config/software/openssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@
# Updating the openssl.cnf file to enable the fips provider
command "sed -i -e 's|# .include fipsmodule.cnf|.include #{fips_cnf_file}|g' #{msys_path}/usr/local/ssl/openssl.cnf"
command "sed -i -e 's|# fips = fips_sect|fips = fips_sect|g' #{msys_path}/usr/local/ssl/openssl.cnf"
patch source: "openssl-3.0.0-add-fips-sect-to-openssl.cnf.patch", env: env
patch_env = env.dup
patch_env["PATH"] = "/c/msys64/usr/local/ssl:#{env["PATH"]}" if windows?
patch source: "openssl-3.0.0-add-fips-sect-to-openssl.cnf.patch", env: patch_env
# command "sed -i '76 i\\
# \[fips_sect\] \\
# activate = 1 \\
Expand Down

0 comments on commit dc0e8d8

Please sign in to comment.