XMB Forum Software
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: Sessions and mTLS
miqrogroove
XMB 1.10 Lead Developer
*********


Avatar


Posts: 638
Registered: 10-1-2002
Member Is Offline

Mood: Past Three O'Clock

posted on 7-17-2026 at 01:44 AM
Sessions and mTLS


I created a proof of concept in here for integrating mTLS sessions with XMB.

https://github.com/miqrogroove/xmb/tree/session-ideas

The Certificates.php implementation is unlikely to be useful, but it's a good exercise in making the session system flexible and easier to plug.

Some of the related changes are useful. I'll start thinking about whether this is safe to merge back into the master branch.
View user's profile Visit user's homepage
flushedpancake
Member
***


Avatar


Posts: 145
Registered: 4-1-2024
Location: England
Member Is Offline

Mood: UwU

posted on 7-19-2026 at 04:29 AM



How exactly does it work?

Looking into it, it's a means of the server and client verifying each other. Sounds useful and interesting (and fixes a flaw of TLS of blindly trusting the certificate chain), though more for the server backend than the client frontend as far as I can see.
View user's profile Visit user's homepage
miqrogroove
XMB 1.10 Lead Developer
*********


Avatar


Posts: 638
Registered: 10-1-2002
Member Is Offline

Mood: Past Three O'Clock

posted on 7-19-2026 at 01:39 PM



This relies on Apache to handle the connection, custom PKI to create the certificates, and XMB simply reads the username from Apache.

The proof is for getting XMB to ignore all the cookies, supporting more than one auth system at the same time, and making it easier to configure without editing the Session system. The last limitation is that we still don't have any plugin system, so it requires a small hack in header.php to turn it on.
View user's profile Visit user's homepage

  Go To Top

Powered by XMB 1.10.06
XMB Forum Software © 2001-2026 The XMB Group
[Queries: 14] [PHP: 45.7% - SQL: 54.3%]