lib/minke/config/reader.rb in minke-1.5.1 vs lib/minke/config/reader.rb in minke-1.5.2

- old
+ new

@@ -89,13 +89,16 @@ url.type = section['type'] end end def read_secure hash + key_path = ENV['SSL_KEY_PATH'].to_s == '' ? '~/.ssh' : ENV['SSL_KEY_PATH'] + + fingerprint = hash['secure']['fingerprint'] value = hash['secure']['value'] - locator = Minke::Encryption::KeyLocator.new ENV['SSL_KEY_PATH'] + locator = Minke::Encryption::KeyLocator.new key_path key_path = locator.locate_key fingerprint encrypt = Minke::Encryption::Encryption.new key_path encrypt.decrypt_string value end