init update for python 3.5

pull/3/head
Ed Rantanen 2016-05-01 07:37:42 -04:00
parent 8586f3198d
commit 7ccf3660ed
1 changed files with 10 additions and 10 deletions

View File

@ -18,25 +18,25 @@ import argparse
def generateCSR(nodename, sans = []): def generateCSR(nodename, sans = []):
while True: while True:
C = raw_input("Enter your Country Name (2 letter code) [US]: ") C = input("Enter your Country Name (2 letter code) [US]: ")
if len(C) != 2: if len(C) != 2:
print "You must enter two letters. You entered %r" % (C) print("You must enter two letters. You entered %r" % (C))
continue continue
ST = raw_input("Enter your State or Province <full name> []:California: ") ST = input("Enter your State or Province <full name> []:California: ")
if len(ST) == 0: if len(ST) == 0:
print "Please enter your State or Province." print( "Please enter your State or Province.")
continue continue
L = raw_input("Enter your (Locality Name (eg, city) []:San Francisco: ") L = input("Enter your (Locality Name (eg, city) []:San Francisco: ")
if len(L) == 0: if len(L) == 0:
print "Please enter your City." print( "Please enter your City.")
continue continue
O = raw_input("Enter your Organization Name (eg, company) []:FTW Enterprise: ") O = input("Enter your Organization Name (eg, company) []:FTW Enterprise: ")
if len(L) == 0: if len(L) == 0:
print "Please enter your Organization Name." print( "Please enter your Organization Name.")
continue continue
OU = raw_input("Enter your Organizational Unit (eg, section) []:IT: ") OU =input("Enter your Organizational Unit (eg, section) []:IT: ")
if len(OU) == 0: if len(OU) == 0:
print "Please enter your OU." print( "Please enter your OU.")
continue continue
# Allows you to permanently set values required for CSR # Allows you to permanently set values required for CSR