💾 Archived View for rawtext.club › ~sloum › geminilist › 001412.gmi captured on 2020-09-24 at 01:54:04. Gemini links have been rewritten to link to archived content

View Raw

More Information

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

<-- back to the mailing list

implementing client certificate support

mbays at sdf.org mbays at sdf.org

Sun Jun 7 23:44:14 BST 2020

- - - - - - - - - - - - - - - - - - - 
On Sun, Jun 07, 2020 at 08:54:39PM +0200, mbays at sdf.org wrote:
### Using identities
* An identity can be set to be used on a given server at and below a given
URI path. So you can have one identity in use for
gemini://foo.bar/~quux/..., and another for gemini://foo.bar/~xuuq/...
How does a certificate come to be restricted to a given URL path and
subpaths?

If an identity starts being used as the result of a 6* response to a request, then the identity is subsequently used for all requests to that path and anything below. Same if the "identify" command is used on an URI.

This doesn't work entirely smoothly with astrobotony -- you might start using our certificate at gemini://astrobotany.mozz.us/plant/, so it then also takes effect for gemini://astrobotany.mozz.us/plant/water and so on, but if you try e.g. gemini://astrobotany.mozz.us/settings you have to select the identity again. You can manually "identify gemini://astrobotany.mozz.us", but that isn't so smooth. Probably marks should optionally have an identity associated -- that would help quite a bit, but needs some forethought from the user.

If this method of restricting an identity to subpaths of the path it's first requested at became normal, maybe servers would tend to arrange everything which requires a certificate below a single "gate" root.

I have been thinking that perhaps the <META> line for status coedes 6x
could be used for the server to specify precisely this information.

That could work.

Cheers,Martin-------------- next part --------------A non-text attachment was scrubbed...Name: signature.ascType: application/pgp-signatureSize: 195 bytesDesc: not availableURL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20200608/a05b2f1c/attachment-0001.sig>