Added user input prompt for CSR Values
parent
2b438386d8
commit
58a575cbe3
18
csrgen.py
18
csrgen.py
|
@ -17,11 +17,19 @@ import argparse
|
||||||
# Generate Certificate Signing Request (CSR)
|
# Generate Certificate Signing Request (CSR)
|
||||||
def generateCSR(nodename, sans = []):
|
def generateCSR(nodename, sans = []):
|
||||||
|
|
||||||
C = 'US'
|
C = raw_input('Enter your country: ')
|
||||||
ST = 'New York'
|
ST = raw_input("Enter your state: ")
|
||||||
L = 'Location'
|
L = raw_input("Enter your location: ")
|
||||||
O = 'Organization'
|
O = raw_input("Enter your organization: ")
|
||||||
OU = 'Organizational Unit'
|
OU = raw_input("Enter your organizational unit: ")
|
||||||
|
|
||||||
|
# Allows you to permanently set values required for CSR
|
||||||
|
# To use, comment raw_input and uncomment this section.
|
||||||
|
# C = 'US'
|
||||||
|
# ST = 'New York'
|
||||||
|
# L = 'Location'
|
||||||
|
# O = 'Organization'
|
||||||
|
# OU = 'Organizational Unit'
|
||||||
|
|
||||||
csrfile = 'host.csr'
|
csrfile = 'host.csr'
|
||||||
keyfile = 'host.key'
|
keyfile = 'host.key'
|
||||||
|
|
Loading…
Reference in New Issue