diff --git a/test/integration/suites/force-rotation-self-signed/15-verify-revoked-x509authority b/test/integration/suites/force-rotation-self-signed/15-verify-revoked-x509authority index 2d4f85ce179..133f9e9be8c 100755 --- a/test/integration/suites/force-rotation-self-signed/15-verify-revoked-x509authority +++ b/test/integration/suites/force-rotation-self-signed/15-verify-revoked-x509authority @@ -1,7 +1,5 @@ #!/bin/bash -#!/bin/bash - MAX_RETRIES=10 RETRY_DELAY=2 # seconds between retries @@ -19,7 +17,8 @@ for agent in "${agents[@]}"; do -socketPath /opt/spire/sockets/workload_api.sock \ -write /tmp; then - bundleCount=$(docker compose exec -T $agent openssl x509 -in /tmp/bundle.0.pem | grep -c "BEGIN CERTIFICATE") + bundleCount=$(docker compose exec -T leafA-agent \ + openssl storeutl -noout -text -certs /tmp/bundle.0.pem | grep -c "Certificate:") if [ $bundleCount -eq 1 ]; then log-debug "Validation successful for $agent: There is exactly one certificate in the chain." break