Skip to content

Sync eng/common directory with azure-sdk-tools for PR 15515 - #58997

Closed
Azure SDK Bot (azure-sdk) wants to merge 2 commits into
mainfrom
sync-eng/common-two-certs-15515
Closed

Sync eng/common directory with azure-sdk-tools for PR 15515#58997
Azure SDK Bot (azure-sdk) wants to merge 2 commits into
mainfrom
sync-eng/common-two-certs-15515

Conversation

@azure-sdk

Copy link
Copy Markdown
Collaborator

Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#15515 See eng/common workflow

Rust's default HTTP stack - reqwest - does not support a self-signed TLS certificate.
Instead, we split the CA out while retaining the old dotnet-devcert.crt public key PEM.
dotnet-devcert.pfx is still the key pair for the server TLS certificate, but is signed by the separate CA.

This should require no code changes to other languages' test-proxy implementations.

Relates to Azure/azure-sdk-for-rust#4345
@azure-sdk
Azure SDK Bot (azure-sdk) requested a review from a team as a code owner May 6, 2026 07:32
@azure-sdk Azure SDK Bot (azure-sdk) added EngSys This issue is impacting the engineering system. Central-EngSys This issue is owned by the Engineering System team. labels May 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR syncs eng/common/testproxy assets with azure-sdk-tools (per tools PR 15515), adding a certificate rotation script and updating the OpenSSL configs/cert artifacts used for the test-proxy/Kestrel HTTPS setup.

Changes:

  • Added rotate.sh to regenerate the CA, localhost leaf cert, and PFX bundle for test-proxy usage.
  • Updated localhost.conf to correctly mark the localhost cert as a leaf (CA:false) and adjust key usage.
  • Added CA config + gitignore entries and updated the committed CA/localhost certificates.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
eng/common/testproxy/rotate.sh New script to generate CA + localhost certs and package into dotnet-devcert.pfx.
eng/common/testproxy/localhost.crt Added committed localhost leaf certificate.
eng/common/testproxy/localhost.conf Updated OpenSSL config for the localhost leaf certificate extensions/usages.
eng/common/testproxy/dotnet-devcert.crt Replaced the committed CA certificate used for trust/chain installation.
eng/common/testproxy/ca.conf Added OpenSSL config for generating the self-signed CA certificate.
eng/common/testproxy/.gitignore Added ignores for generated .csr, .key, and .srl artifacts.

Comment thread eng/common/testproxy/rotate.sh
Comment thread eng/common/testproxy/rotate.sh
Comment thread eng/common/testproxy/rotate.sh
@heaths

Copy link
Copy Markdown
Member

/azp run net - keyvault - tests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@heaths

Copy link
Copy Markdown
Member

Investigating some potential issues in .NET that may exist elsewhere but don't want to keep these open forever.

@azure-sdk-automation
azure-sdk-automation Bot deleted the sync-eng/common-two-certs-15515 branch July 12, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Central-EngSys This issue is owned by the Engineering System team. EngSys This issue is impacting the engineering system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants