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

Fix init keystore template for Jammy FIPS stemcell #177

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions jobs/credhub/templates/init_key_stores.erb
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ fi

# Use Fips 140-2 compatible encryption algorithm
if [ -f "/proc/sys/crypto/fips_enabled" ]; then
FIPS_OPTS="-certpbe PBE-SHA1-3DES -keypbe PBE-SHA1-3DES"
echo "Using Fips 140-2 compatible encryption algorithm PBE-SHA1-3DES to package cert and key with pkcs12"
FIPS_OPTS="-nomac"
LEGACY=""
# see https://github.com/pivotal/credhub-release/issues/174
echo "Using Fips 140-2 compatible openssl options to package cert and key with pkcs12"
else
FIPS_OPTS=""
fi
Expand Down