Initial commit
This commit is contained in:
commit
beffca972c
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.disabled
|
8
README.md
Normal file
8
README.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Install KTO Root Certificates
|
||||||
|
|
||||||
|
This repository contains a small setup to automate the delivery of our root certificates to clients.
|
||||||
|
|
||||||
|
### Files
|
||||||
|
* `kto.crt` is our current only root certificate
|
||||||
|
#### Installation
|
||||||
|
* `install.sh` copies the certificates to the right location and then reloads the system's certificates
|
28
install.sh
Executable file
28
install.sh
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
run_directory=$(dirname $(readlink -f "$0"))
|
||||||
|
user=$(whoami)
|
||||||
|
|
||||||
|
if [ -f $run_directory/.disabled ]; then
|
||||||
|
echo "Installation is disabled. Exiting..."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $user != 'root' ]]; then
|
||||||
|
sudo="sudo"
|
||||||
|
else
|
||||||
|
sudo=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
$sudo cp $run_directory/*.crt /etc/ca-certificates/trust-source/anchors/
|
||||||
|
if command -v update-ca-trust > /dev/null; then
|
||||||
|
$sudo update-ca-trust
|
||||||
|
elif command -v update-ca-certificates > /dev/null; then
|
||||||
|
$sudo update-ca-certificates
|
||||||
|
else
|
||||||
|
echo "No update-ca binary found. Exiting with error!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Finished install. Exiting..."
|
||||||
|
exit 0
|
31
kto.crt
Normal file
31
kto.crt
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIFazCCA1OgAwIBAgIURz3mSUsJQVoV7ZnhkH5aicqGt0MwDQYJKoZIhvcNAQEL
|
||||||
|
BQAwRTELMAkGA1UEBhMCRlIxEzARBgNVBAgMClNvbWUt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TAdBgNVHQ4EFgQUvnxhPGdEOGGu0SU7yR3N/O3luLkwHwYDVR0j
|
||||||
|
BBgwFoAUvnxhPGdEOGGu0SU7yR3N/O3luLkwDwYDVR0TAQH/BAUwAwEB/zANBgkq
|
||||||
|
hkiG9w0BAQsFAAOCAgEAsMLYmw7CuCOdotCaEVZEISoPUKFXCUowthoeZ41GR/ol
|
||||||
|
j2tFCTVxrSIJZqCzDPb5H3zezkGetp4/9woiL3+3Jcr5WKY6T42Fnt9JDPmich1C
|
||||||
|
UkUazmRdqD8n0tai8sBf2Z1NjpkKIRDJGfYfbgm+AQ8s0nts5dXctRuCPTltHvRS
|
||||||
|
/qh1KK4EvzTzRBrgYO2dSPtHnrGGSz0N511MdQ6z4pUDnkesAtwcUOzKA63gDZeF
|
||||||
|
UpQAVP5Q/E2zQRXgclwKCKC21OKVjn8mEkoZ4iNZx7y5XSK9PEH/8LnTKIQPLWgT
|
||||||
|
A8q1yCCVC/gqfZA1EZjcuLvV+Lf1DGosSLJ5kKIHyYeV++raCZugQgJ3K2NmmwqH
|
||||||
|
dYRzxyjc4TN8Tdm4GJOB1IqzwdF8hU8lB9wUq3fcIDb810KaOCM+37mBznFqYtc6
|
||||||
|
xp9uUUab6tP3w9gr1UEEQDIJKy5B/nlB/x2ZI6rH2BUfzzOMdhsRxS4dYTqgyTcb
|
||||||
|
PTMTeoMl434CdQQYHzCGXMraPChUI472ihFXShR72sfTSMf0UQAx1l5+vtVDwBON
|
||||||
|
W6HOvKxPuJaR7/Ex+h1ZG58X2m5nqiMAAidIvi78D3SD51/yzTkunx+3KDy1fIav
|
||||||
|
ib6Rrim+ZMYiXaP5cK6N8ivfxj8ClcKuBnU4m4Zq8Xc2F8Y7qcvbKavqy6iHOOc=
|
||||||
|
-----END CERTIFICATE-----
|
Loading…
Reference in New Issue
Block a user