Skip to content

Commit

Permalink
[fix] null password handling when loading keystore
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Jun 1, 2022
1 parent e8e57b0 commit fda1a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/manticore/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ def setup_key_store(ssl_options, context)
def get_store(prefix, options)
KeyStore.get_instance(options[:"#{prefix}_type"] || guess_store_type(options[prefix])).tap do |store|
instream = open(options[prefix], "rb").to_inputstream
store.load(instream, options.fetch(:"#{prefix}_password", nil).to_java.toCharArray)
store.load(instream, options.fetch(:"#{prefix}_password", nil).to_java&.toCharArray)
end
end

Expand Down

0 comments on commit fda1a66

Please sign in to comment.