Skip to content

Commit

Permalink
Fix OpenSSL X509 hash commands
Browse files Browse the repository at this point in the history
  • Loading branch information
john-odonnell committed Oct 13, 2023
1 parent 5ffed27 commit 2b65a73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/test_suites/authenticators_oidc/test
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function main() {
local conjur_parallel_services
read -ra conjur_parallel_services <<< "$(get_parallel_services 'conjur')"
for parallel_service in "${conjur_parallel_services[@]}"; do
hash=$($COMPOSE exec "${parallel_service}" openssl x509 -hash -in /etc/ssl/certs/keycloak.pem -out /dev/null)
hash=$($COMPOSE exec "${parallel_service}" openssl x509 -hash -in /etc/ssl/certs/keycloak.pem --noout)
$COMPOSE exec "${parallel_service}" rm "/etc/ssl/certs/$hash.0" || true
done

Expand Down
2 changes: 1 addition & 1 deletion dev/start
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ configure_oidc_v2() {
if [ "$service_id" = "keycloak2" ]; then
client_add_secret "conjur/authn-oidc/$service_id/ca-cert" "$($COMPOSE exec conjur cat /etc/ssl/certs/keycloak.pem)"
# Delete the symlink so we can test with the 'ca-cert' variable
hash=$($COMPOSE exec conjur openssl x509 -hash -in /etc/ssl/certs/keycloak.pem -out /dev/null)
hash=$($COMPOSE exec conjur openssl x509 -hash -in /etc/ssl/certs/keycloak.pem --noout)
$COMPOSE exec conjur rm "/etc/ssl/certs/$hash.0" || true
fi

Expand Down

0 comments on commit 2b65a73

Please sign in to comment.