Add plain HTTP server for redirect and CA download#3474
Open
praseodym wants to merge 1 commit into
Open
Conversation
stacktraceghost
approved these changes
Jun 29, 2026
Contributor
There was a problem hiding this comment.
Tested on Windows and Linux, both work.
We need to document that the fingerprint of the downloaded certificate should be verified against the fingerprint logged by the Abacus server, to prevent man-in-the-middle attacks.
Is there an issue for this? We also need some documentation for adding the CA cert in Windows to the correct store.
| To trust the server, import the CA into the client trust store: `ca.pem` on | ||
| Linux/macOS/Firefox, `ca.cer` (DER) on Windows. | ||
| Linux/macOS/Firefox, `ca.cer` (DER) on Windows. The CA can be downloaded from the | ||
| running server at `/ca.pem` and `/ca.cer`. |
Contributor
There was a problem hiding this comment.
Suggested change
| running server at `/ca.pem` and `/ca.cer`. | |
| running plain HTTP server at `/ca.pem` and `/ca.cer`. |
Contributor
Author
Just created kiesraad/abacus-documentatie#76, thanks for mentioning this! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Add a plaintext HTTP server that redirects to HTTPS and makes the CA certificates available on HTTP, so that the CA certificate can be imported into client browser trust stores. Resolves #3412.
We need to document that the fingerprint of the downloaded certificate should be verified against the fingerprint logged by the Abacus server, to prevent man-in-the-middle attacks.
How to test
From a terminal:
cargo run --features tls # and in another terminal curl -v localhost:8080 curl -v localhost:8080/ca.pem curl -v localhost:8080/ca.cer curl --cacert tls/ca.pem -v https://localhost:8443/ca.pem curl --cacert tls/ca.pem -v https://localhost:8443/ca.cerThen check that the redirect works and that the CA certificates are available.
Reviewer notes
None.