2020-06-17 Tiny Gemini Client in Bash

This defines the function โ€œgeminiโ€ such that you can visit a Gemini URL from the command line.

I should write another one that uses a client certificate, too. ๐Ÿ™‚

And hereโ€™s an uploader using Titan.

Hereโ€™s how to call it:

I put these two functions into a git repo.

a git repo

โ€‹#Bash โ€‹#Gemini

Comments

(Please contact me if you want to remove your comment.)

โ‚

I guess the URL schema is superfluous. ๐Ÿ™‚

If somebody uses a client certificate with a common name set, we could use this to save a username when saving pages. An excellent way to self-identify.

Sadly, on the server side, I have not found a way to learn anything about the client certificate used. ๐Ÿ˜Ÿ

โ€“ Alex Schroeder 2020-06-17 21:41 UTC

---

I depends upon the library you are using for TLS. I use libtls, which makes it not only easy to use TLS, but to obtain information from the client certificate.

โ€“ Sean Conner 2020-06-17 22:21 UTC

Sean Conner

---

Hm. I use Perlโ€™s IO::Socket::SSL which allows me to examine the peer certificate, according to the do documentation but when I do it, there is nothing. ๐Ÿ˜•

โ€“ Alex Schroeder 2020-06-18 12:42 UTC