diff options
author | rsiddharth <s@ricketyspace.net> | 2019-06-03 20:59:59 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2019-06-03 20:59:59 -0400 |
commit | c5c4255aecb05d415800504e877a28f18a515bbe (patch) | |
tree | c38cc2be02923aa9c5207a945b0fea98cce28157 /sign_csr.py | |
parent | bc9f923525f22ea79e1b7508ef3c202acdc27d4f (diff) |
sign_csr.py: Use `input` instead of `raw_input`.
Diffstat (limited to 'sign_csr.py')
-rw-r--r-- | sign_csr.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sign_csr.py b/sign_csr.py index 5993d8a..aadb2e9 100644 --- a/sign_csr.py +++ b/sign_csr.py @@ -84,7 +84,7 @@ def sign_csr(pubkey, csr, email=None, file_based=False): default_email = "webmaster@{0}".format(min(domains, key=len)) stdout = sys.stdout sys.stdout = sys.stderr - input_email = raw_input("STEP 1: What is your contact email? ({0}) ".format(default_email)) + input_email = input("STEP 1: What is your contact email? ({0}) ".format(default_email)) email = input_email if input_email else default_email sys.stdout = stdout @@ -177,7 +177,7 @@ openssl dgst -sha256 -sign user.key -out {3} {4} stdout = sys.stdout sys.stdout = sys.stderr - raw_input("Press Enter when you've run the above commands in a new terminal window...") + input("Press Enter when you've run the above commands in a new terminal window...") sys.stdout = stdout # Step 6: Load the signatures @@ -284,7 +284,7 @@ STEP 3: You need to sign some more files (replace 'user.key' with your user priv stdout = sys.stdout sys.stdout = sys.stderr - raw_input("Press Enter when you've run the above commands in a new terminal window...") + input("Press Enter when you've run the above commands in a new terminal window...") sys.stdout = stdout # Step 10: Load the response signatures @@ -311,7 +311,7 @@ Notes: stdout = sys.stdout sys.stdout = sys.stderr - raw_input("Press Enter when you've got the file hosted on your server...") + input("Press Enter when you've got the file hosted on your server...") sys.stdout = stdout else: sys.stderr.write("""\ @@ -327,7 +327,7 @@ sudo python -c "import BaseHTTPServer; \\ stdout = sys.stdout sys.stdout = sys.stderr - raw_input("Press Enter when you've got the python command running on your server...") + input("Press Enter when you've got the python command running on your server...") sys.stdout = stdout # Step 12: Let the CA know you're ready for the challenge |