Commit 6a231d44 authored by Joshua Tauberer's avatar Joshua Tauberer

clarify that an SSL cert can remain self-signed on the non-primary domains if...

clarify that an SSL cert can remain self-signed on the non-primary domains if the domain isn't being used for web
parent dcce98f8
...@@ -212,11 +212,17 @@ def check_ssl_cert(domain, env): ...@@ -212,11 +212,17 @@ def check_ssl_cert(domain, env):
]) ])
fingerprint = re.sub(".*Fingerprint=", "", fingerprint).strip() fingerprint = re.sub(".*Fingerprint=", "", fingerprint).strip()
print_error("""The SSL certificate for this domain is currently self-signed. That's OK if you are willing to confirm security if domain == env['PRIMARY_HOSTNAME']:
exceptions when you check your mail (either via IMAP or webmail), but if you are serving a website on this domain then users print_error("""The SSL certificate for this domain is currently self-signed. You will get a security
will not be able to access the site. When confirming security exceptions, check that the certificate fingerprint matches:""") warning when you check or send email and when visiting this domain in a web browser (for webmail or
print() static site hosting). You may choose to confirm the security exception, but check that the certificate
print(" " + fingerprint) fingerprint matches the following:""")
print()
print(" " + fingerprint)
else:
print_error("""The SSL certificate for this domain is currently self-signed. Visitors to a website on
this domain will get a security warning. If you are not serving a website on this domain, then it is
safe to leave the self-signed certificate in place.""")
print() print()
print_block("""You can purchase a signed certificate from many places. You will need to provide this Certificate Signing Request (CSR) print_block("""You can purchase a signed certificate from many places. You will need to provide this Certificate Signing Request (CSR)
to whoever you purchase the SSL certificate from:""") to whoever you purchase the SSL certificate from:""")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment