Skip to content

Commit

Permalink
Tweaking openssl to match chef-18
Browse files Browse the repository at this point in the history
Signed-off-by: John <[email protected]>
  • Loading branch information
johnmccrae committed May 28, 2024
1 parent bfa1a8a commit f593510
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/software/openssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,10 @@

# add OPENSSL_FIPS to the environment _if_ fips is active
fips_env=fips_mode? ? env.merge({"OPENSSL_FIPS" => "1"}) : env
command "#{ENV["OMNIBUS_TOOLCHAIN_INSTALL_DIR"]}/embedded/bin/gem install openssl-#{openssl_gem_version}.gem --no-document -- --with-openssl-dir=#{install_dir}/embedded", env: fips_env
gem_path = ENV["OMNIBUS_TOOLCHAIN_INSTALL_DIR"] || '/opt/chef'
command "#{gem_path}/embedded/bin/gem install openssl-#{openssl_gem_version}.gem --no-document -- --with-openssl-dir=#{install_dir}/embedded", env: fips_env

command "#{ENV["OMNIBUS_TOOLCHAIN_INSTALL_DIR"]}/embedded/bin/gem info openssl"
command "#{gem_path}/embedded/bin/gem info openssl"
command "#{install_dir}/embedded/bin/openssl list -provider-path providers -provider fips -providers"
end

Expand Down

0 comments on commit f593510

Please sign in to comment.