aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..0bb50f8
--- /dev/null
+++ b/README.md
@@ -0,0 +1,30 @@
+# gencert
+
+A thing that generates certificates. Since https://letsencrypt.org/ is
+also a thing, you should probably use that instead. Still, gencert can
+be useful to do PKI on things that only live on your LAN.
+
+## Examples
+
+```shell
+# Generate a self-signed certificate.
+# This generates ~/out/my-ca.crt and ~/out/my-ca.key.
+$ gencert \
+ -c US \
+ -o example.com \
+ -cn 'My CA' \
+ -d $((100 * 24))h \
+ -out ~/out/my-ca
+
+# Generate a normal certificate.
+# This reads ~/out/my-ca.crt and ~/out/my-ca.key, and generates
+# ~/out/my-site.crt and ~/my-site.key.
+$ gencert \
+ -ca ~/out/my-ca \
+ -c US \
+ -o example.com \
+ -cn 'My Server' \
+ -d $((10 * 24))h \
+ -dns www.example.com \
+ -out ~/out/my-site
+```