Skip to content

Instantly share code, notes, and snippets.

View tomvieira's full-sized avatar

Wellington Vieira tomvieira

  • São Paulo - Brasil
View GitHub Profile
@tomvieira
tomvieira / java_key.rb
Created June 22, 2022 17:17
script to add the certs to java keytool
keystore = "/etc/java-6-sun/security/cacerts"
keystore_pass = "foobar"
# you'll need foo.cert et. al. in files/default
certs = %w{foo bar bang}
certs.each do |cert|
cookbook_file "#{Chef::Config[:file_cache_path]}/#{cert}.cert" do
source "#{cert}.cert"
end