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 17, 2024
1 parent 2b08f44 commit 1de960f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/software/openssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@
project.overrides[:openssl] &&
ChefUtils::VersionString.new(project.overrides[:openssl][:version]).satisfies?(">= 3.0")

openssl_gem_version = project.overrides.dig(:ruby, :openssl_gem) || "3.0.0"
# use the same version as ruby 3.1.2 version has as default, so that the chef gemfile inclusion of the
# same openssl gem version is redundant for ruby 3.1[.2] projects
command "curl https://rubygems.org/downloads/openssl-#{openssl_gem_version}.gem --output openssl-#{openssl_gem_version}.gem"
Expand Down

0 comments on commit 1de960f

Please sign in to comment.