Clean up --register-unsafely-without-email docs (#8223)

* Clean up --register-unsafely text.

* update unsafe_suggestion

* remove unused import

* Expand scary message.
This commit is contained in:
Brad Warren
2020-08-27 13:25:57 -07:00
committed by GitHub
parent 70731dd75b
commit d62d853ea4
2 changed files with 8 additions and 11 deletions
+4 -7
View File
@@ -171,13 +171,10 @@ def prepare_and_parse_args(plugins, args, detect_defaults=False):
["register", "automation"], "--register-unsafely-without-email", action="store_true", ["register", "automation"], "--register-unsafely-without-email", action="store_true",
default=flag_default("register_unsafely_without_email"), default=flag_default("register_unsafely_without_email"),
help="Specifying this flag enables registering an account with no " help="Specifying this flag enables registering an account with no "
"email address. This is strongly discouraged, because in the " "email address. This is strongly discouraged, because you will be "
"event of key loss or account compromise you will irrevocably " "unable to receive notice about impending expiration or "
"lose access to your account. You will also be unable to receive " "revocation of your certificates or problems with your Certbot "
"notice about impending expiration or revocation of your " "installation that will lead to failure to renew.")
"certificates. Updates to the Subscriber Agreement will still "
"affect you, and will be effective 14 days after posting an "
"update to the web site.")
helpful.add( helpful.add(
["register", "update_account", "unregister", "automation"], "-m", "--email", ["register", "update_account", "unregister", "automation"], "-m", "--email",
default=flag_default("email"), default=flag_default("email"),
+4 -4
View File
@@ -6,7 +6,6 @@ import zope.component
from certbot import errors from certbot import errors
from certbot import interfaces from certbot import interfaces
from certbot import util from certbot import util
from certbot.compat import misc
from certbot.compat import os from certbot.compat import os
from certbot.display import util as display_util from certbot.display import util as display_util
@@ -33,9 +32,10 @@ def get_email(invalid=False, optional=True):
msg = "Enter email address (used for urgent renewal and security notices)\n" msg = "Enter email address (used for urgent renewal and security notices)\n"
unsafe_suggestion = ("\n\nIf you really want to skip this, you can run " unsafe_suggestion = ("\n\nIf you really want to skip this, you can run "
"the client with --register-unsafely-without-email " "the client with --register-unsafely-without-email "
"but make sure you then backup your account key from " "but you will then be unable to receive notice about "
"{0}\n\n".format(os.path.join( "impending expiration or revocation of your "
misc.get_default_folder('config'), 'accounts'))) "certificates or problems with your Certbot "
"installation that will lead to failure to renew.\n\n")
if optional: if optional:
if invalid: if invalid:
msg += unsafe_suggestion msg += unsafe_suggestion