From 6bd49652e050b357ba99a4c735ac16d2a2e344b2 Mon Sep 17 00:00:00 2001 From: Ben Mz Date: Fri, 15 Jun 2018 20:35:02 +0200 Subject: [PATCH] minor corrections --- README.md | 4 ++-- csr_tools/csrgen.py | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6536393..cc87331 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/csr_tools/csrgen.py b/csr_tools/csrgen.py index 077ee81..f2461cc 100755 --- a/csr_tools/csrgen.py +++ b/csr_tools/csrgen.py @@ -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")