From fda1a661ee1d8dc67a51772de5a4e06fb1dc4111 Mon Sep 17 00:00:00 2001 From: kares Date: Wed, 1 Jun 2022 12:11:39 +0200 Subject: [PATCH] [fix] null password handling when loading keystore --- lib/manticore/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/manticore/client.rb b/lib/manticore/client.rb index bdc68c2..6082416 100644 --- a/lib/manticore/client.rb +++ b/lib/manticore/client.rb @@ -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