Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

You will lose an important disk file.


devel / comp.infosystems.gemini / Gemini CGI Example

SubjectAuthor
* Gemini CGI ExampleMartin
`* Re: Gemini CGI Examplemet
 `- Re: Gemini CGI ExampleMartin

1
Gemini CGI Example

<su80l6$ruo$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=168&group=comp.infosystems.gemini#168

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!aioe.org!7tsQ4VMOMtkk0zvsql7ARQ.user.46.165.242.75.POSTED!not-for-mail
From: martin@datapulp.de (Martin)
Newsgroups: comp.infosystems.gemini
Subject: Gemini CGI Example
Date: Sat, 12 Feb 2022 11:03:13 +0100
Organization: Aioe.org NNTP Server
Message-ID: <su80l6$ruo$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="28632"; posting-host="7tsQ4VMOMtkk0zvsql7ARQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.6.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Martin - Sat, 12 Feb 2022 10:03 UTC

Hi. I wrote a 69 lines Gemini cgi bash script to show how to input data,
how to store it and how to get it back and display it in the browser.

gemini://hubbz.de/apps/tls-input-test

In a real application you possibly would make use of a database and a
better programming language. This is just thought for educational purposes.

If you have ideas how to make it any shorter or more elegant, I
appreciate any comment.

Martin

Re: Gemini CGI Example

<su8qpa$ee7$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=169&group=comp.infosystems.gemini#169

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!aioe.org!2DT0ZDuWZWxquSTxnrXR1A.user.46.165.242.91.POSTED!not-for-mail
From: met@ph.or
Newsgroups: comp.infosystems.gemini
Subject: Re: Gemini CGI Example
Date: Sat, 12 Feb 2022 17:29:15 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <su8qpa$ee7$1@gioia.aioe.org>
References: <su80l6$ruo$1@gioia.aioe.org>
Injection-Info: gioia.aioe.org; logging-data="14791"; posting-host="2DT0ZDuWZWxquSTxnrXR1A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: met@ph.or - Sat, 12 Feb 2022 17:29 UTC

=> Client Certificate Required (Unsupported)

Maybe host it on Gopher so it's accessible?

Re: Gemini CGI Example

<su90dp$18gf$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=170&group=comp.infosystems.gemini#170

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!aioe.org!7tsQ4VMOMtkk0zvsql7ARQ.user.46.165.242.75.POSTED!not-for-mail
From: martin@datapulp.de (Martin)
Newsgroups: comp.infosystems.gemini
Subject: Re: Gemini CGI Example
Date: Sat, 12 Feb 2022 20:05:24 +0100
Organization: Aioe.org NNTP Server
Message-ID: <su90dp$18gf$1@gioia.aioe.org>
References: <su80l6$ruo$1@gioia.aioe.org> <su8qpa$ee7$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="41487"; posting-host="7tsQ4VMOMtkk0zvsql7ARQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.6.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Martin - Sat, 12 Feb 2022 19:05 UTC

Am 12.02.22 um 18:29 schrieb met@ph.or:
> => Client Certificate Required (Unsupported)
>
> Maybe host it on Gopher so it's accessible?

You need a Gemini browser which supports client certificates, the
primary login mechanism on Gemini.

Lagrange supports this out of the box. Amfora has an entry in it's wiki
how to use it.

In Lagrange you are asked explicitly to make use of an existing identity
(client certificate) or make a new one for this test script.

Martin

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor