Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LOG-8159] Use CA file with public root certificates #132

Merged
merged 13 commits into from Apr 27, 2020

remove downloading lg cert

  • Loading branch information
ondrejrozsypal committed Apr 20, 2020
commit 790eade0a2a903b3a1ee3eb42c0099302eed9849
@@ -503,16 +503,6 @@ checkAuthTokenAndWriteContents() {
fi
}

downloadTlsCerts() {
echo "DOWNLOADING CERTIFICATE"
mkdir -pv /etc/rsyslog.d/keys/ca.d
curl -O https://logdog.loggly.com/media/logs-01.loggly.com_sha12.crt
sudo cp -Prf logs-01.loggly.com_sha12.crt /etc/rsyslog.d/keys/ca.d/logs-01.loggly.com_sha12.crt
sudo rm logs-01.loggly.com_sha12.crt
if [ ! -f /etc/rsyslog.d/keys/ca.d//logs-01.loggly.com_sha12.crt ]; then
logMsgToConfigSysLog "ERROR" "ERROR: Certificate could not be downloaded."
exit 1
fi
}

confString() {
@@ -598,7 +588,6 @@ action(type=\"omfwd\" protocol=\"tcp\" target=\"$LOGS_01_HOST\" port=\"$LOGGLY_S
#install the certificate and check if gnutls package is installed
installTLSDependencies() {
if [ $LOGGLY_TLS_SENDING == "true" ]; then
downloadTlsCerts
if [ "$SUPPRESS_PROMPT" == "true" ]; then
/bin/bash -c "sudo $PKG_MGR install -y rsyslog-gnutls"
else
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.