minor corrections

pull/7/head
Ben Mz 2018-06-15 20:35:02 +02:00
parent 33eedb39a2
commit 6bd49652e0
2 changed files with 4 additions and 6 deletions

View File

@ -76,12 +76,12 @@ openssl req -in test.test.com.csr -noout -text
### To read a Certificate (CER)
```bash
openssl x509 -in cerfile.cer -noout -text
openssl x509 -in test.test.com.cer -noout -text
```
### To read a Certificate (PEM)
```bash
openssl x509 -inform pem -in cerfile.cer -noout -text
openssl x509 -inform pem -in test.test.com.cer -noout -text
```
# TODO

View File

@ -43,8 +43,6 @@ class Certificate:
except KeyError:
pass
self._header()
# Set default log level
try:
self._level = opts['level']
@ -163,7 +161,7 @@ class Certificate:
self.output("\n[+] Your CSR and certificate ({s} bits) are now generated with:".format(s=self._key_size))
for k,v in self.opts.items():
if k is 'hostname':
self.output("\t[{k}]\t-> {v}".format(k=k,v=v))
self.output("\t[CN]\t\t-> {v}".format(k=k,v=v))
else:
self.output("\t[{k}]\t\t-> {v}".format(k=k,v=v))
@ -318,7 +316,7 @@ def main(argv):
parser = argparse.ArgumentParser()
parser.add_argument("-v", "--verbose", help="Output more infos", action="store_true")
parser.add_argument("-d", "--debug", help="Enable debug mode", action="store_true")
parser.add_argument("-l", "--log", help="Define log file (default: {f}".format(f=LOG_FILE))
parser.add_argument("-l", "--log", help="Define log file (default: {f})".format(f=LOG_FILE))
parser.add_argument("-n", "--name", help="Provide the FQDN", action="store", default="")
parser.add_argument("-s", "--san", help="SANS, define alternative names", action="store", nargs='*', default="")
parser.add_argument("-k", "--keysize", help="Provide the key size", action="store", default="2048")