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

System Certificates are not installed properly #41

@nickumia-reisys

Description

@nickumia-reisys

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions