diff --git a/freebsd.gmi b/freebsd.gmi index eef5df2..d71b995 100644 --- a/freebsd.gmi +++ b/freebsd.gmi @@ -103,7 +103,7 @@ The following miniamlistic script can be used to check for capsule availability ``` #!/bin/sh -errorOutput=$(echo -n "gemini://$1/\r\n" | /path/to/gnutls-cli -p 1965 $1 2>&1 > /dev/null) +errorOutput=$(echo -n "gemini://$1/\r\n" | /path/to/gnutls-cli --port 1965 --tofu $1 2>&1 > /dev/null) errorCode=$? if [ $errorCode -gt 0 ] @@ -116,6 +116,8 @@ else fi ``` +Here we use "trust on first use authentication" (--tofu), so don't forget to manually launch gnutls-cli first. And if security is not your primary concern, you can use the more permissive --no-ca-verification flag instead. + # Greetings Many many thanks to @solene@bsd.network for writing that wonderful little piece of software thas is vger, and @hucste@framapiaf.org for pointing it to me.