commit 5ed4e80856e857506e339002de7ccab3b46618c8 from: Omar Polo date: Sun Jan 30 23:06:37 2022 UTC mention the contrib scripts commit - 201a3e21706b76887450f24cd62d29c73e95b568 commit + 5ed4e80856e857506e339002de7ccab3b46618c8 blob - a7f9bfc7d1806f9007c2a2451fda11645cfb23bf blob + 05d2e68de218084350c758b5397d5f86bd3f65b6 --- site/tutorial.gmi +++ site/tutorial.gmi @@ -32,6 +32,18 @@ listen on localhost port 1337 tls pki localhost auth < "SHA256:..." is the hash of the client certificate for the user "op" and is used for authentication. The configuration is quite flexible, and allows to create “virtual users” and map those to custom home directories too. +An easy way to generate certificates and obtain their fingerprint is by using the scripts ‘fingerprint’ and ‘gencert’ in the ‘contrib’ directory: + +```example of how to use fingerprint and gencert +% ./gencert foo +Generating a 4096 bit RSA private key +[...] +writing new private key to 'foo' +----- +% ./fingerprint foo +SHA256:c043a39b4c65993f03b8df46116a692392399e3be0eb233f4efd74cd53540370 +``` + To check the configuration for syntax errors, execute: ```