-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTTPS support for the Agama web server (#1062)
## Problem - The communication between the user and the Agama web server needs to be encrypted ## Solution - Enable HTTPS support using the standard openSSL library - Automatically redirect all external HTTP requests to HTTPS - Allow using HTTP locally (`http://localhost`) - Use the SSL certificate specified from the command line or generate a self-signed one ## Testing - Tested manually ## TODO - [x] Update the documentation For later: - [ ] Use the [gethostname crate](https://crates.io/crates/gethostname) and include the current host name in the generated self-signed certificate - [ ] Read the SSL certificate from some default location (something like `/etc/agama.d/ssl/{certificate,key}.pem` ?) - [ ] Implement struct for handling key / certificate and associate it with relevant methods
- Loading branch information
Showing
8 changed files
with
845 additions
and
471 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
Oops, something went wrong.