Allow SMTP server to load different key types (#2126)

This commit is contained in:
Florent Poinsaut
2023-03-13 14:11:10 +00:00
committed by GitHub
parent a188a161cb
commit 2e82deebae
+1 -1
View File
@@ -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