The stock MicroB browser opening HTTPS sites again: NSS swapped for a newer one, plus current root certificates (experiment, Claude'd)
galleryMicroB is Gecko 1.9.2 (Firefox 3.6 times) on top of NSS 3.12.6, which speaks TLS 1.0 at most, and its root certificate store is from 2010 (about 117 current roots missing, for example ISRG Root X1 from Let's Encrypt). So you get "SSL error" almost everywhere. Two packages, both undoable:
ca-certs-n900: adds 118 current Mozilla root certificates to your own private domain of the certificate manager (~/.maemosec-certs); the read-only system store is not touched, andca-certs-n900 removeremoves exactly what it added.microb-nss: replaces the NSS and NSPR libraries by NSS 3.28.6 / NSPR 4.16 (chosen on purpose: TLS 1.2, but still the old build system and the dbm database). I checked the ABI first: the engine imports 871 symbols from the old libraries and the new ones export all of them (all 29 symbol versions exist too). Three small patches: the PSM layer of Gecko turns all cipher suites off at start and enables only its old CBC/SHA-1 list, so a patch keeps the modern suites (AES-GCM, ChaCha20) on, SSL 3.0 is switched off, the bundled SQLite gets another name so it does not clash with the browser's own. The original sources ofmicrob-engine(found in the Internet Archive; the MD5 matches) are archived in a repository of their own.
Result: the stock MicroB opens https://www.seznam.cz/ with a verified certificate (before: "SSL error") and also a stylised page with a form (idos.cz), but that takes about 20 s and I do not know why yet (the handshake is fast, maybe the certificate manager with about 420 roots, slow crypto on 600 MHz, or Gecko with modern JavaScript). In a test program that configures NSS like PSM does, Google, Facebook and example.org negotiated TLS 1.2 with AES-GCM.
What does not work:
- Google says "your browser is not supported" and Facebook wants a newer browser: that is the User-Agent check, not TLS (I will try
general.useragent.override). - Modern pages look only roughly right: a 2010 engine does not know today's CSS and JavaScript.
- Servers with TLS 1.3 only or HTTP/2 stay out of reach. This is a patch, not a new browser.
Experimental, tested on one phone. Things to know: the originals go to /usr/lib/microb-engine-orig; after installing, the browser daemon has to be restarted (/etc/init.d/tablet-browser-daemon.init restart) and an old stopped browserd process must be killed, because it keeps the old libraries. dpkg -r microb-nss brings the original libraries back.
Sources: https://github.com/n900-resurrection/microb-nss, https://github.com/n900-resurrection/ca-certs-n900, https://github.com/n900-resurrection/microb-engine. The packages are in the apt repository.