-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from stuggi/tls_public_endpoint
Introduce kolla_copy_cacerts
- Loading branch information
Showing
4 changed files
with
20 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# Copy custom CA certificates to system trusted CA certificates folder | ||
# and run CA update utility | ||
|
||
if [[ -d /var/lib/config-data/ca-certificates ]] && \ | ||
[[ ! -z "$(ls -A /var/lib/config-data/ca-certificates/)" ]]; then | ||
# CentOS | ||
for cert in /var/lib/config-data/ca-certificates/*; do | ||
file=$(basename "$cert") | ||
cp $cert "/etc/pki/ca-trust/source/anchors/ospk8s-customca-$file" | ||
done | ||
update-ca-trust | ||
fi |
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