💾 Archived View for gemi.dev › gemini-mailing-list › 001075.gmi captured on 2023-11-04 at 13:18:37. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2023-12-28)

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

Debugging Help

Jonathan Lamothe <jonathan (a) jlamothe.net>

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

Link to individual message.

Jonathan Lamothe <jonathan (a) jlamothe.net>

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?

Link to individual message.

Xe <me (a) christine.website>

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

Link to individual message.

Jonathan Lamothe <jonathan (a) jlamothe.net>

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

Link to individual message.

Xe <me (a) 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

Link to individual message.

Jonathan Lamothe <jonathan (a) jlamothe.net>

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 at 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

Link to individual message.

Stephane Bortzmeyer <stephane (a) sources.org>

On Fri, Nov 26, 2021 at 07:16:21PM +0000,
 Jonathan Lamothe <jonathan at 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).

Link to individual message.

---

Previous Thread: Announcing SpellBinding, a cgi game for Gemini

Next Thread: [Off Topic] Happy Holidays and Well Wishes