Skip to content

Commit

Permalink
Update supported format for private key
Browse files Browse the repository at this point in the history
  • Loading branch information
erebe committed Jan 4, 2024
1 parent 360cd8b commit 0001afc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ Options:
The path prefix act as a secret to authenticate clients
Disabled by default. Accept all path prefix. Can be specified multiple time
--tls-certificate <FILE_PATH>
[Optional] Use custom certificate (.pem) instead of the default embedded self signed certificate.
[Optional] Use custom certificate (pem) instead of the default embedded self signed certificate.
The certificate will be automatically reloaded if it changes
--tls-private-key <FILE_PATH>
[Optional] Use a custom tls key (.pem) that the server will use instead of the default embedded one
[Optional] Use a custom tls key (pem, ec, rsa) that the server will use instead of the default embedded one
The private key will be automatically reloaded if it changes
-h, --help
Print help
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,12 @@ struct Server {
)]
restrict_http_upgrade_path_prefix: Option<Vec<String>>,

/// [Optional] Use custom certificate (.pem) instead of the default embedded self signed certificate.
/// [Optional] Use custom certificate (pem) instead of the default embedded self signed certificate.
/// The certificate will be automatically reloaded if it changes
#[arg(long, value_name = "FILE_PATH", verbatim_doc_comment)]
tls_certificate: Option<PathBuf>,

/// [Optional] Use a custom tls key (.pem) that the server will use instead of the default embedded one
/// [Optional] Use a custom tls key (pem, ec, rsa) that the server will use instead of the default embedded one
/// The private key will be automatically reloaded if it changes
#[arg(long, value_name = "FILE_PATH", verbatim_doc_comment)]
tls_private_key: Option<PathBuf>,
Expand Down

0 comments on commit 0001afc

Please sign in to comment.