diff --git a/lib/postal/config.rb b/lib/postal/config.rb index 59d38bc..ec43f45 100644 --- a/lib/postal/config.rb +++ b/lib/postal/config.rb @@ -137,7 +137,7 @@ module Postal end def self.smtp_private_key - @smtp_private_key ||= OpenSSL::PKey::RSA.new(File.read(smtp_private_key_path)) + @smtp_private_key ||= OpenSSL::PKey.read(File.read(smtp_private_key_path)) end def self.smtp_certificate_path