]> git.sesse.net Git - linux-dallas-multipass/blob - README
Initial commit.
[linux-dallas-multipass] / README
1 A proxy to be able to use Buypass (www.buypass.no) smart cards on Linux.
2 Roughly equivalent to Buypass' official “Javafri” application (aka SCProxy),
3 but obviously highly unofficial.
4
5 Licensed under GPLv2+. If you use this for anything, you're clearly insane.
6 I don't know Rust.
7
8 To build, you'll need a bazillion Rust crates, because who can serve HTTPS
9 and talk to a smartcard reader without 105 dependencies. Generate a self-signed
10 certificate (make sure the common name says 127.0.0.1 when asked):
11
12   openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 3650 -nodes 
13   openssl rsa -in key.pem > cert.rsa
14
15 Install the certificate in your browser; I didn't have any luck with Chrome
16 (it's possible you'll need to go through a self-signed CA), but it worked fine
17 in Firefox.
18
19 Build and run:
20
21   sudo apt install pcscd libpcsclite-dev
22   cargo run
23
24 Insert the smartcard in your reader, and then go to www.helsenorge.no to log in.
25 There's an example systemd service in multipass.service for persistent running
26 (do cargo build --release first, then adjust path).