Skip to content

Commit b2b4fed

Browse files
committed
Configure standard .NET OpenSSL trust for Linux tests
The original GitHub job logs show dotnet dev-certs exiting with code 4 before cluster tests because SSL_CERT_DIR does not include the SDK development-certificate trust directory. Set the documented .NET trust path for the SDK command and subsequent clients. No custom CA, PFX generation or TLS validation bypass is introduced. Validated with actionlint. Runtime source and the frozen local test binaries are unchanged; the complete Linux workflow will verify this environment correction.
1 parent ba87239 commit b2b4fed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎.github/workflows/build-and-tests.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ jobs:
159159
certutil -N -d "sql:$HOME/.pki/nssdb" --empty-password
160160
fi
161161
- name: Trust standard Aspire development certificate
162-
run: dotnet dev-certs https --trust
162+
run: |
163+
export SSL_CERT_DIR="$HOME/.aspnet/dev-certs/trust:/usr/lib/ssl/certs"
164+
echo "SSL_CERT_DIR=$SSL_CERT_DIR" >> "$GITHUB_ENV"
165+
dotnet dev-certs https --trust
163166
- name: Test Aspire topology lanes
164167
run: node scripts/Features/TestInfrastructure/ci-test-shards.mjs run "$SHARD" --results-directory "$GITHUB_WORKSPACE/tests/KeyLoad.ClusterTests/bin/Debug/net10.0/ci-results"
165168
- name: Save test results

0 commit comments

Comments
 (0)