Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
public:gemini_toaster [2021/02/21 20:44] – [Basic monitoring] shorter monitoring script Nicopublic:gemini_toaster [2021/03/08 23:02] Nico
Line 104: Line 104:
 #!/bin/sh #!/bin/sh
  
-errorOutput=$(echo -n  "gemini://$1/\r\n" | /usr/local/bin/gnutls-cli -1965 $1 2>&1 > /dev/null)+errorOutput=$(echo -n  "gemini://$1/\r\n" | /usr/local/bin/gnutls-cli --port 1965 --tofu $1 2>&1 > /dev/null)
 errorCode=$? errorCode=$?
  
Line 116: Line 116:
 fi fi
 </code> </code>
 +
 +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 ===== ===== Greetings =====
  
 Many many thanks to [[https://bsd.network/@solene|@solene@bsd.network]] for writing that wonderful little piece of software thas is vger, and [[https://framapiaf.org/@hucste|@hucste@framapiaf.org]] for pointing it to me. Many many thanks to [[https://bsd.network/@solene|@solene@bsd.network]] for writing that wonderful little piece of software thas is vger, and [[https://framapiaf.org/@hucste|@hucste@framapiaf.org]] for pointing it to me.