💾 Archived View for lists.flounder.online › gemini › threads › 20211126025528.w5thwnbigzahcgvu@pertw… captured on 2022-04-28 at 19:20:01. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Debugging Help

Debugging Help

From: jonathan@jlamothe.net

Date: Fri, 26 Nov 2021 02:55:28 +0000

Message-Id: 20211126025528.w5thwnbigzahcgvu@pertwee

To: <gemini@lists.orbitalfox.eu>

Reply

Export

--------------------------------------

Hey all,

As I've mentioned before, I've been working on a Gemini server framework for Haskell.

I've got the basic framework finished, but there's one bug that I'm just beating my head against a wall trying to sort out. For whatever reason, when the client sends a certificate, it isn't being passed to the handler.

If there are any Haskellers here (particularly any who have experience with the tls and/or tcp-streams packages) any assistance would be appreciated.

The code itself is at: https://codeberg.org/jlamothe/gemcap

There's an open issue at: https://codeberg.org/jlamothe/gemcap/issues/1

...and finally, the branch where I'm working on it is the certfix branch.

Functions that are likely of particular interest are:

These can all be found in src/Network/Gemini/Capsule.hs

--

Regards,

Jonathan Lamothe

Debugging Help

From: jonathan@jlamothe.net

Date: Fri, 26 Nov 2021 19:16:21 +0000 (UTC)

Message-Id: 0434e27a-a9fd-4414-bff4-c6a8cb81dc3a@jlamothe.net

To: <gemini@lists.orbitalfox.eu>

In-Reply-To: 20211126025528.w5thwnbigzahcgvu@pertwee

Reply

Export

--------------------------------------

So... I'm starting to wonder if perhaps the bug lies with the browser rather than with my actual code.  Is there somewhere I can point a Gemini browser at to test if it's sending a client certificate properly?

Re: Debugging Help

From: me@christine.website

Date: Fri, 26 Nov 2021 19:29:45 +0000

Message-Id: CFZYL0AXI8R6.3PU19YCVC2V4F@lufta

To: "Jonathan Lamothe" <jonathan@jlamothe.net>, <gemini@lists.orbitalfox.eu>

In-Reply-To: 0434e27a-a9fd-4414-bff4-c6a8cb81dc3a@jlamothe.net

Reply

Export

--------------------------------------

Which browser are you using? I've had good luck with Lagrange doing

client certificates correctly.

On Fri Nov 26, 2021 at 7:16 PM UTC, Jonathan Lamothe wrote:

So... I'm starting to wonder if perhaps the bug lies with the browser
rather than with my actual code. Is there somewhere I can point a Gemini
browser at to test if it's sending a client certificate properly?

Xe

https://christine.website

.i la budza pu cusku lu

<<.i ko snura .i ko kanro

.i ko panpi .i ko gleki

Re: Debugging Help

From: jonathan@jlamothe.net

Date: Fri, 26 Nov 2021 19:49:02 +0000

Message-Id: 20211126194902.pzzzjxuppjhcsmdt@pertwee

To: "Xe" <me@christine.website>

In-Reply-To: CFZYL0AXI8R6.3PU19YCVC2V4F@lufta

Cc: <gemini@lists.orbitalfox.eu>

Reply

Export

--------------------------------------

Kristall.

For the life of me, I can't find a version number.

On Fri, Nov 26, 2021 at 07:29:45PM +0000, Xe wrote:

Which browser are you using? I've had good luck with Lagrange doing
client certificates correctly.
On Fri Nov 26, 2021 at 7:16 PM UTC, Jonathan Lamothe wrote:
> So... I'm starting to wonder if perhaps the bug lies with the browser
> rather than with my actual code. Is there somewhere I can point a Gemini
> browser at to test if it's sending a client certificate properly?
Xe
https://christine.website
.i la budza pu cusku lu
<<.i ko snura .i ko kanro
.i ko panpi .i ko gleki

--

Regards,

Jonathan Lamothe

Re: Debugging Help

From: me@christine.website

Date: Fri, 26 Nov 2021 19:50:01 +0000

Message-Id: CFZZ0IY4YG6E.20YYTF8AQNAEE@lufta

To: "Jonathan Lamothe" <jonathan@jlamothe.net>

In-Reply-To: 20211126194902.pzzzjxuppjhcsmdt@pertwee

Cc: <gemini@lists.orbitalfox.eu>

Reply

Export

--------------------------------------

You may want to try Lagrange: https://gmi.skyjake.fi/lagrange/, if only

to be sure that your tools are working.

On Fri Nov 26, 2021 at 7:49 PM UTC, Jonathan Lamothe wrote:

Kristall.
For the life of me, I can't find a version number.
On Fri, Nov 26, 2021 at 07:29:45PM +0000, Xe wrote:
> Which browser are you using? I've had good luck with Lagrange doing
> client certificates correctly.
>
> On Fri Nov 26, 2021 at 7:16 PM UTC, Jonathan Lamothe wrote:
> > So... I'm starting to wonder if perhaps the bug lies with the browser
> > rather than with my actual code. Is there somewhere I can point a Gemini
> > browser at to test if it's sending a client certificate properly?
>
> Xe
> https://christine.website
>
> .i la budza pu cusku lu
> <<.i ko snura .i ko kanro
> .i ko panpi .i ko gleki
--
Regards,
Jonathan Lamothe

Xe

https://christine.website

.i la budza pu cusku lu

<<.i ko snura .i ko kanro

.i ko panpi .i ko gleki

Re: Debugging Help

From: jonathan@jlamothe.net

Date: Fri, 26 Nov 2021 21:08:25 +0000 (UTC)

Message-Id: 9f6ec4f8-eb86-44aa-9a80-db6dd40d0c34@jlamothe.net

To: "Xe" <me@christine.website>

In-Reply-To: CFZZ0IY4YG6E.20YYTF8AQNAEE@lufta

Cc: <gemini@lists.orbitalfox.eu>

Reply

Export

--------------------------------------

Issue persists with Lagrange.

I guess I'm back to banging my head against a wall on this bug.

--

Regards,

Jonathan Lamothe

Sent from my mobile device.

Nov. 26, 2021 14:51:41 Xe <me@christine.website>:

You may want to try Lagrange: https://gmi.skyjake.fi/lagrange/, if only
to be sure that your tools are working.
On Fri Nov 26, 2021 at 7:49 PM UTC, Jonathan Lamothe wrote:
> Kristall.
>
> For the life of me, I can't find a version number.
>
> On Fri, Nov 26, 2021 at 07:29:45PM +0000, Xe wrote:
>> Which browser are you using? I've had good luck with Lagrange doing
>> client certificates correctly.
>>
>> On Fri Nov 26, 2021 at 7:16 PM UTC, Jonathan Lamothe wrote:
>>> So... I'm starting to wonder if perhaps the bug lies with the browser
>>> rather than with my actual code. Is there somewhere I can point a Gemini
>>> browser at to test if it's sending a client certificate properly?
>>
>> Xe
>> https://christine.website
>>
>> .i la budza pu cusku lu
>> <<.i ko snura .i ko kanro
>>    .i ko panpi .i ko gleki
>
> --
> Regards,
> Jonathan Lamothe
Xe
https://christine.website
.i la budza pu cusku lu
<<.i ko snura .i ko kanro
   .i ko panpi .i ko gleki

Re: Debugging Help

From: stephane@sources.org

Date: Sun, 28 Nov 2021 10:01:21 +0100

Message-Id: YaNFYet+3Z0Lyma4@sources.org

To: "Jonathan Lamothe" <jonathan@jlamothe.net>

In-Reply-To: 0434e27a-a9fd-4414-bff4-c6a8cb81dc3a@jlamothe.net

Cc: <gemini@lists.orbitalfox.eu>

Reply

Export

--------------------------------------

On Fri, Nov 26, 2021 at 07:16:21PM +0000,

Jonathan Lamothe <jonathan@jlamothe.net> wrote

a message of 32 lines which said:

So... I'm starting to wonder if perhaps the bug lies with the
browser rather than with my actual code.  Is there somewhere I can
point a Gemini browser at to test if it's sending a client
certificate properly?

You can try with a different browser. For instance, Agunua

<gemini://gemini.bortzmeyer.org/software/agunua/> allows you to send a

client certificate. Handy to test servers since it works from the

command-line. I use it with Station <gemini://station.martinrue.com/>

(see the file client-certificate.md in Agunua's distribution).