1
0
mirror of https://github.com/bitwarden/server synced 2025-12-23 19:53:40 +00:00

Add ability to load custom root CA

This commit is contained in:
Justin Baur
2025-11-18 09:47:53 -05:00
parent 0ba216e62e
commit 64e63b2536
3 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
export REPO_ROOT="$(git rev-parse --show-toplevel)"
file="$REPO_ROOT/dev/custom-root-ca.crt"
if [ -e "$file" ]; then
echo "Adding custom root CA"
sudo cp "$file" /usr/local/share/ca-certificates/
sudo update-ca-certificates
else
echo "No custom root CA found, skipping..."
fi