Changes to the noreply-daemon key

This commit is contained in:
David Duque 2021-03-30 00:03:21 +01:00
parent 127629611b
commit 071002b755
No known key found for this signature in database
GPG key ID: 913FE0F2477D7D6B
2 changed files with 2 additions and 4 deletions

View file

@ -7,7 +7,6 @@ import sys
import html
import smtplib
from email.mime.application import MIMEApplication
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
@ -46,9 +45,8 @@ msg['Subject'] = "[%s] %s" % (env['PRIMARY_HOSTNAME'], subject)
content_html = "<html><body><pre>{}</pre></body></html>".format(html.escape(content))
msg.attach(MIMEText(content, 'plain'))
msg.attach(MIMEText(create_signature(content.encode()).decode(), 'plain'))
msg.attach(MIMEText(content_html, 'html'))
msg.attach(MIMEApplication(create_signature(content.encode()), Name="signed.asc"))
# In Python 3.6:
#msg.set_content(content)

View file

@ -20,7 +20,7 @@ function gpg_keygen {
Key-Type: RSA
Key-Length: 4096
Key-Usage: sign,encrypt,auth
Name-Real: Power Mail-in-a-Box Management Daemon
Name-Real: System Management Daemon
Name-Email: noreply-daemon@${PRIMARY_HOSTNAME}
Expire-Date: 180d
%commit