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 — forked from toddlers/java_key.rb
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

Keybase proof

I hereby claim:

  • I am tomvieira on github.
  • I am wsvieira (https://keybase.io/wsvieira) on keybase.
  • I have a public key ASDSkSaSf67kP45H9_QzSp1iGEO8fFgUpSLZVXQ2XJrseAo

To claim this, I am signing this object: