mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
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:
@@ -171,13 +171,10 @@ def prepare_and_parse_args(plugins, args, detect_defaults=False):
|
||||
["register", "automation"], "--register-unsafely-without-email", action="store_true",
|
||||
default=flag_default("register_unsafely_without_email"),
|
||||
help="Specifying this flag enables registering an account with no "
|
||||
"email address. This is strongly discouraged, because in the "
|
||||
"event of key loss or account compromise you will irrevocably "
|
||||
"lose access to your account. You will also be unable to receive "
|
||||
"notice about impending expiration or revocation of your "
|
||||
"certificates. Updates to the Subscriber Agreement will still "
|
||||
"affect you, and will be effective 14 days after posting an "
|
||||
"update to the web site.")
|
||||
"email address. This is strongly discouraged, because you will be "
|
||||
"unable to receive notice about impending expiration or "
|
||||
"revocation of your certificates or problems with your Certbot "
|
||||
"installation that will lead to failure to renew.")
|
||||
helpful.add(
|
||||
["register", "update_account", "unregister", "automation"], "-m", "--email",
|
||||
default=flag_default("email"),
|
||||
|
||||
@@ -6,7 +6,6 @@ import zope.component
|
||||
from certbot import errors
|
||||
from certbot import interfaces
|
||||
from certbot import util
|
||||
from certbot.compat import misc
|
||||
from certbot.compat import os
|
||||
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"
|
||||
unsafe_suggestion = ("\n\nIf you really want to skip this, you can run "
|
||||
"the client with --register-unsafely-without-email "
|
||||
"but make sure you then backup your account key from "
|
||||
"{0}\n\n".format(os.path.join(
|
||||
misc.get_default_folder('config'), 'accounts')))
|
||||
"but you will then be unable to receive notice about "
|
||||
"impending expiration or revocation of your "
|
||||
"certificates or problems with your Certbot "
|
||||
"installation that will lead to failure to renew.\n\n")
|
||||
if optional:
|
||||
if invalid:
|
||||
msg += unsafe_suggestion
|
||||
|
||||
Reference in New Issue
Block a user