Blob


1 .\" Copyright (c) 2021 Omar Polo <op@omarpolo.com>
2 .\"
3 .\" Permission to use, copy, modify, and distribute this software for any
4 .\" purpose with or without fee is hereby granted, provided that the above
5 .\" copyright notice and this permission notice appear in all copies.
6 .\"
7 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 .Dd $Mdocdate: January 23 2021$
15 .Dt GG 1
16 .Os
17 .Sh NAME
18 .Nm gg
19 .Nd simple Gemini client
20 .Sh SYNOPSIS
21 .Nm
22 .Bk -words
23 .Op Fl 23bchNVv
24 .Op Fl H Ar hostname
25 .Ar IRI
26 .Ek
27 .Sh DESCRIPTION
28 .Nm
29 is a simple Gemini client.
30 It fetches the Gemini page given and prints the server response to
31 standard output.
32 The option are as follows:
33 .Bl -tag -width 6m
34 .It Fl 2
35 Use only TLSv1.2.
36 .It Fl 3
37 Use only TLSv1.3.
38 .It Fl b
39 Print only the body of the response.
40 .It Fl c
41 Print only the response code.
42 .It Fl H Ar hostname
43 Use the given
44 .Ar hostname
45 for SNI, instead of the one extracted from the IRI.
46 The IRI hostname will still be used for the DNS resolution.
47 .It Fl h
48 Print only the response header.
49 .It Fl N
50 Don't check whether the peer certificate name matches the requested
51 hostname.
52 .It Fl V
53 Only validate the IRI, don't do the Gemini transaction.
54 .It Fl v
55 Print also the request.
56 .El
57 .Pp
58 Note that
59 .Nm
60 won't try to do TOFU (Trust On First Use) or any X.509 certificate
61 validation: it will happily accept any certificate it is given.
62 .Pp
63 By default
64 .Nm
65 will accept both TLSv1.2 and TLSv1.3 and will always do SNI.