lib/yoti/ssl.rb in yoti-1.5.0 vs lib/yoti/ssl.rb in yoti-1.6.0

- old
+ new

@@ -57,9 +57,16 @@ ssl_decipher.key = key ssl_decipher.iv = user_iv ssl_decipher.update(text) + ssl_decipher.final end + # Reset and reload the Private Key used for SSL functions + def reload! + @private_key = nil + @pem = nil + nil + end + private def private_key @private_key ||= OpenSSL::PKey::RSA.new(pem) rescue StandardError => e