-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tls): Optionally support loading native certs (#11491)
This commit adds "DENO_TLS_CA_STORE" env variable to support optionally loading certificates from the users local certificate store. This will allow them to successfully connect via tls with corporate and self signed certs provided they have them installed in their keystore. It also allows them to deal with revoked certs by simply updating their keystore without having to upgrade Deno. Currently supported values are "mozilla", "system" or empty value.
- Loading branch information
1 parent
fddeb4c
commit 02c74fb
Showing
25 changed files
with
488 additions
and
235 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,6 +139,7 @@ pub struct Flags { | |
pub allow_read: Option<Vec<PathBuf>>, | ||
pub allow_run: Option<Vec<String>>, | ||
pub allow_write: Option<Vec<PathBuf>>, | ||
pub ca_stores: Option<Vec<String>>, | ||
pub ca_file: Option<String>, | ||
pub cache_blocklist: Vec<String>, | ||
/// This is not exposed as an option in the CLI, it is used internally when | ||
|
@@ -276,6 +277,9 @@ static ENV_VARIABLES_HELP: &str = r#"ENVIRONMENT VARIABLES: | |
hostnames to use when fetching remote modules from | ||
private repositories | ||
(e.g. "[email protected];[email protected]") | ||
DENO_TLS_CA_STORE Comma-seperated list of order dependent certificate stores | ||
(system, mozilla) | ||
(defaults to mozilla) | ||
DENO_CERT Load certificate authority from PEM encoded file | ||
DENO_DIR Set the cache directory | ||
DENO_INSTALL_ROOT Set deno install's output directory | ||
|
Oops, something went wrong.