From 2e82deebaef3b863ec8ee91570596e0f93488674 Mon Sep 17 00:00:00 2001 From: Florent Poinsaut <1256948+FlorentPoinsaut@users.noreply.github.com> Date: Mon, 13 Mar 2023 15:11:10 +0100 Subject: [PATCH] Allow SMTP server to load different key types (#2126) --- lib/postal/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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