aboutsummaryrefslogtreecommitdiff
path: root/gmid.1
diff options
context:
space:
mode:
Diffstat (limited to 'gmid.1')
-rw-r--r--gmid.127
1 files changed, 12 insertions, 15 deletions
diff --git a/gmid.1 b/gmid.1
index cbed02e..1c0a320 100644
--- a/gmid.1
+++ b/gmid.1
@@ -182,29 +182,26 @@ $ chmod +x docs/cgi/hello
$ gmid -x '/cgi/*' docs
.Ed
.Pp
-An X.509 certificate must be provided to run
+To run
.Nm
-using a configuration file.
-First, the RSA certificate is created using a wildcard common name:
+as a deamon a configuration file and a X.509 certificate must be provided.
+A self-signed certificate, which are commonly used in the Geminispace,
+can be generated using for e.g.\&
+.Xr openssl 1 :
.Bd -literal -offset indent
-# openssl genrsa \-out /etc/ssl/private/example.com.key 4096
-# openssl req \-new \-x509 \e
- \-key /etc/ssl/private/example.com.key \e
- \-out /etc/ssl/example.com.crt \e
- \-days 36500 \-nodes \e
- \-subj "/CN=example.com"
+# openssl req \-x509 \-newkey rsa:4096 \-nodes \e
+ \-keyout /etc/ssl/private/example.com.key \e
+ \-out /etc/ssl/example.com.pem \e
+ \-days 365 \-subj "/CN=example.com"
# chmod 600 /etc/ssl/example.com.crt
# chmod 600 /etc/ssl/private/example.com.key
.Ed
.Pp
-In the example above, a certificate is valid for one hundred years from
-the date it was created, which is normal for TOFU.
-.Pp
-Then, to run
+Then
.Nm
-as a daemon:
+can be started with
.Bd -literal -offset indent
-$ gmid -c /etc/gmid.conf
+# gmid -c /etc/gmid.conf
.Ed
.Sh SEE ALSO
.Xr gmid.conf 5