Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to print out server info. #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ltratt
Copy link
Owner

@ltratt ltratt commented Oct 19, 2024

In particular, this allows the HTTPS public key to be printed so that one can verify that the browser is actually connecting to the expected server. For example:

$ cargo run info
pizauth version 1.0.5:
  cache directory: /tmp/runtime-ltratt/pizauth
  config file: /home/ltratt/.config/pizauth.conf
server running:
  HTTP port: 7470
  HTTPS port: 24004
  HTTPS public key: 04:70:57:B0:9A:B4:1C:F9:CB:2E:33:CB:71:D9:B1:7C:5C:6E:84:8F:25:66:F4:C8:1E:3F:41:F8:34:8D:2A:6A:3F:26:D9:A6:57:27:D0:B0:93:09:5B:50:70:D9:DD:1A:A0:DE:33:04:E1:A8:FB:C6:30:D2:92:B1:26:11:E5:75:B9

Note this requires a bump to the JSON info version.

@trembel This solves the major remaining weakness with the HTTPS support as I see it. Of course, one could always do more e.g. allowing users to specify their own certificates. But this feels like it's enough for someone to have confidence in the HTTPS support in pizauth. Does it work as expected for you?

In particular, this allows the HTTPS public key to be printed so that
one can verify that the browser is actually connecting to the expected
server. For example:

```
$ cargo run info
pizauth version 1.0.5:
  cache directory: /tmp/runtime-ltratt/pizauth
  config file: /home/ltratt/.config/pizauth.conf
server running:
  HTTP port: 7470
  HTTPS port: 24004
  HTTPS public key: 04:70:57:B0:9A:B4:1C:F9:CB:2E:33:CB:71:D9:B1:7C:5C:6E:84:8F:25:66:F4:C8:1E:3F:41:F8:34:8D:2A:6A:3F:26:D9:A6:57:27:D0:B0:93:09:5B:50:70:D9:DD:1A:A0:DE:33:04:E1:A8:FB:C6:30:D2:92:B1:26:11:E5:75:B9
```

Note this requires a bump to the JSON info version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant