diff --git a/tuf/repository_tool.py b/tuf/repository_tool.py index e56fa2b7..27e12c6d 100755 --- a/tuf/repository_tool.py +++ b/tuf/repository_tool.py @@ -3384,6 +3384,8 @@ def import_rsa_privatekey_from_file(filepath, password=None): tuf.formats.PATH_SCHEMA.check_match(filepath) # If the caller does not provide a password argument, prompt for one. + # Password confirmation disabled here, which should ideally happen only + # when creating encrypted key files (i.e., improve usability). if password is None: message = 'Enter a password for the encrypted RSA file: ' password = _get_password(message, confirm=False) @@ -3640,6 +3642,8 @@ def import_ed25519_privatekey_from_file(filepath, password=None): tuf.formats.PATH_SCHEMA.check_match(filepath) # If the caller does not provide a password argument, prompt for one. + # Password confirmation disabled here, which should ideally happen only + # when creating encrypted key files (i.e., improve usability). if password is None: message = 'Enter a password for the encrypted ED25519 key: ' password = _get_password(message, confirm=False)