-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce CA single-file bundle support
- smithproxy must be reconfigured, settings/ca_bundle_file must contain file with the CA bundle. The value is by default empty. Using this bundle is preferred, **if set** (non-default). - add `sx_download_ca_bundle` helper script, which will download curl CA bundle. (distilled Mozilla CA bundle). - patch for new feature request issue #33
- Loading branch information
Showing
8 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env sh | ||
|
||
FILE_PATH="/etc/smithproxy/certs/ca_curl_bundle.pem" | ||
FILE_URL="https://curl.se/ca/cacert.pem" | ||
|
||
wget ${FILE_URL} -O ${FILE_PATH} | ||
|
||
if [ $? -ne 0 ]; then | ||
echo " !!! Sorry, something went wrong..." | ||
else | ||
echo | ||
echo " => file saved here: ${FILE_PATH}" | ||
echo " !!! Smithproxy must be reconfigured to use this CA bundle and then restarted." | ||
echo | ||
fi | ||
|
||
|
||
|