mirror of
https://github.com/postalserver/postal.git
synced 2026-10-20 19:26:07 +00:00
generate a 1024-bit key for the default DKIM signing key
This commit is contained in:
@@ -41,7 +41,7 @@ unless File.exists?(Postal.lets_encrypt_private_key_path)
|
|||||||
end
|
end
|
||||||
|
|
||||||
unless File.exists?(Postal.signing_key_path)
|
unless File.exists?(Postal.signing_key_path)
|
||||||
key = OpenSSL::PKey::RSA.new(2048).to_s
|
key = OpenSSL::PKey::RSA.new(1024).to_s
|
||||||
File.open(Postal.signing_key_path, 'w') { |f| f.write(key) }
|
File.open(Postal.signing_key_path, 'w') { |f| f.write(key) }
|
||||||
puts "Created new signing key for DKIM & HTTP requests"
|
puts "Created new signing key for DKIM & HTTP requests"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user