Browse Source

Merge branch 'master' of gitlab.perpetual.name:doctor/certgencli

Mike Richardson 5 years ago
parent
commit
4d15ffd52b
1 changed files with 15 additions and 9 deletions
  1. 15 9
      README.md

+ 15 - 9
README.md

@@ -7,33 +7,39 @@ This is the command line version, which can be installed locally and run securel
 Install
 =======
 
-git clone http://gitlab.perpetual.name/doctor/certgencli.git CertGenCLI
+<code>git clone http://gitlab.perpetual.name/doctor/certgencli.git CertGenCLI</code>
 
-cd CertGenCLI
+<code>cd CertGenCLI</code>
 
 Either install the python cryptography package 
 
-apt-get install python-cryptography
+<code>apt-get install python-cryptography</code>
 
 or
 
-pip install -r requirements.txt
+<code>pip install -r requirements.txt</code>
 
 The latter doesn't appear to work too well on Debian.
 
 Run
 ===
 
-cli.py -c <County> -s <State> -l <Location> -o <Organisation> -ou <Organisation Unit> -n <CN> -r <CRLDP> -p <password> -d <Output Directory>
+<code>cli.py -c &lt;County&gt; -s &lt;State&gt; -l &lt;Location&gt; -o &lt;Organisation&gt; -u &lt;Organisation Unit&gt; -n &lt;CN&gt; -r &lt;CRLDP&gt; -p &lt;password&gt; -d &lt;Output Directory&gt;</code>
 
-e.g. ./cli.py -d /tmp -n fred.site.com -cGB -sWales -lCardiff -oSomewhere -uSomething -pakjdslfasd
+e.g. 
+
+<code>cli.py -d /tmp -n fred.site.com -cGB -sWales -lCardiff -oSomewhere -uSomething -pakjdslfasd</code>
 
 This will create all the necessary certificates in /tmp
 
 rootca.pem
+
 server-cert.pem
+
 server-key.pem
+
 list.crl
+
 root-key.pem
 
 RootCA
@@ -65,15 +71,15 @@ Notes
 
 You can check the certificates by running:
 
-openssl x509 -noout -text -in <certname>
+<code>openssl x509 -noout -text -in &lt;certname&gt;</code>
 
 which will work for rootca.pem and server-cert.pem
 
-openssl rsa -in <keyname> -check
+<code>openssl rsa -in &lt;keyname&gt; -check</code>
 
 which will work for server-key.pem and root-key.pem
 
-openssl crl -noout -text -in <crlfile>
+<code>openssl crl -noout -text -in &lt;crlfile&gt;</code>
 
 which will work for list.crl