commit
8832553fcd
|
@ -0,0 +1,2 @@
|
||||||
|
dist/*
|
||||||
|
*.log
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
C: 'FR'
|
C: 'Te'
|
||||||
ST: 'PACA'
|
ST: 'PACA'
|
||||||
L: 'Gap'
|
L: 'Gap'
|
||||||
O: 'ProHacktive SAS'
|
O: 'ProHacktive SAS'
|
||||||
OU: 'prohacktive.io'
|
OU: 'prohacktive.io'
|
|
@ -190,16 +190,6 @@ class Certificate:
|
||||||
self.opts['O'] = self._ask("Enter your Organization Name (eg, company) [FTW Enterprise]: ", default='FTW Enterprise')
|
self.opts['O'] = self._ask("Enter your Organization Name (eg, company) [FTW Enterprise]: ", default='FTW Enterprise')
|
||||||
elif field is 'OU':
|
elif field is 'OU':
|
||||||
self.opts['OU'] = self._ask("Enter your Organizational Unit (eg, section) [IT]: ", default='IT')
|
self.opts['OU'] = self._ask("Enter your Organizational Unit (eg, section) [IT]: ", default='IT')
|
||||||
elif field is 'hostname':
|
|
||||||
self.opts['hostname'] = self._ask("Enter your Common Name (eg, DNS name) [{n}]:".format(n=platform.node()), default=platform.node())
|
|
||||||
|
|
||||||
# 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'
|
|
||||||
|
|
||||||
# Parse the contents of the YAML file and then
|
# Parse the contents of the YAML file and then
|
||||||
# auto setup values.
|
# auto setup values.
|
||||||
|
@ -392,7 +382,7 @@ def main(argv):
|
||||||
cert.getCSRSubjects()
|
cert.getCSRSubjects()
|
||||||
|
|
||||||
if args.file:
|
if args.file:
|
||||||
cert.generateFromFile(args.file)
|
cert.loadNodes(args.file)
|
||||||
else:
|
else:
|
||||||
cert.generateCSR()
|
cert.generateCSR()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
Loading…
Reference in New Issue