1 497977d5 2021-01-23 op .\" Copyright (c) 2021 Omar Polo <op@omarpolo.com>
3 497977d5 2021-01-23 op .\" Permission to use, copy, modify, and distribute this software for any
4 497977d5 2021-01-23 op .\" purpose with or without fee is hereby granted, provided that the above
5 497977d5 2021-01-23 op .\" copyright notice and this permission notice appear in all copies.
7 497977d5 2021-01-23 op .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 497977d5 2021-01-23 op .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 497977d5 2021-01-23 op .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 497977d5 2021-01-23 op .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 497977d5 2021-01-23 op .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 497977d5 2021-01-23 op .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 497977d5 2021-01-23 op .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 497977d5 2021-01-23 op .Dd $Mdocdate: January 23 2021$
19 497977d5 2021-01-23 op .Nd simple Gemini client
23 58173ca2 2021-01-27 op .Op Fl 23bchNVv
24 31b3662c 2021-02-09 op .Op Fl C Pa cert.pem Fl K Pa key.pem
25 58173ca2 2021-01-27 op .Op Fl H Ar hostname
28 497977d5 2021-01-23 op .Sh DESCRIPTION
30 497977d5 2021-01-23 op is a simple Gemini client.
31 497977d5 2021-01-23 op It fetches the Gemini page given and prints the server response to
32 497977d5 2021-01-23 op standard output.
33 497977d5 2021-01-23 op The option are as follows:
34 497977d5 2021-01-23 op .Bl -tag -width 6m
36 497977d5 2021-01-23 op Use only TLSv1.2.
38 497977d5 2021-01-23 op Use only TLSv1.3.
40 497977d5 2021-01-23 op Print only the body of the response.
41 31b3662c 2021-02-09 op .It Fl C Pa cert.pem
42 31b3662c 2021-02-09 op Load the client certificate, must be in PEM format.
44 497977d5 2021-01-23 op Print only the response code.
45 58173ca2 2021-01-27 op .It Fl H Ar hostname
48 58173ca2 2021-01-27 op for SNI, instead of the one extracted from the IRI.
49 58173ca2 2021-01-27 op The IRI hostname will still be used for the DNS resolution.
51 497977d5 2021-01-23 op Print only the response header.
52 31b3662c 2021-02-09 op .It Fl K Pa key.pem
53 31b3662c 2021-02-09 op Load the client certificate key, must be in PEM format.
55 497977d5 2021-01-23 op Don't check whether the peer certificate name matches the requested
58 497977d5 2021-01-23 op Only validate the IRI, don't do the Gemini transaction.
60 58173ca2 2021-01-27 op Print also the request.
65 497977d5 2021-01-23 op won't try to do TOFU (Trust On First Use) or any X.509 certificate
66 497977d5 2021-01-23 op validation: it will happily accept any certificate it is given.
70 497977d5 2021-01-23 op will accept both TLSv1.2 and TLSv1.3 and will always do SNI.