Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

System Certificates are not installed properly #41

Open
nickumia-reisys opened this issue May 2, 2022 · 0 comments
Open

System Certificates are not installed properly #41

nickumia-reisys opened this issue May 2, 2022 · 0 comments

Comments

@nickumia-reisys
Copy link
Contributor

The following error occurs every time that logstash starts up and it's been there ever since I've been working with this repo,
image

The code in question is in the .profile

echo "Installing Cloud Foundry root CA certificate..."
cp "$LS_HOME"/jdk/lib/security/cacerts "$LS_HOME"/jdk/lib/security/jssecacerts
shopt -s nullglob # Skip the loop if there're no matching files
for cert in "${CF_SYSTEM_CERT_PATH:-/etc/cf-system-certificates}/*" ; do
    echo "Installing certificates: $cert"
    # We haven't ever seen someone change this default password, and anyone who
    # can see this already has permission to update these files, so we're not
    # setting anything more complicated to avoid complications down the line.
    "$LS_HOME"/jdk/bin/keytool -noprompt -import -trustcacerts -file "$cert" -storepass changeit -alias "${cert/$CF_SYSTEM_CERT_PATH\//}" -keystore "$LS_HOME"/jdk/lib/security/jssecacerts
done

Upon ssh'ing into an app on cloud.gov, I've verified that the directory doesn't exist, even though the documentation says it should.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant