Skip to content

Commit 0f7708b

Browse files
Copilotvcsjones
andcommitted
Remove platform implementation details from X509Chain.ChainElements documentation
Co-authored-by: vcsjones <[email protected]>
1 parent 9ea639b commit 0f7708b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

xml/System.Security.Cryptography.X509Certificates/X509Chain.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -464,10 +464,7 @@
464464
465465
A chain element consists of an <xref:System.Security.Cryptography.X509Certificates.X509Certificate2> object, an <xref:System.Security.Cryptography.X509Certificates.X509ChainStatus> structure, and an extra information string.
466466
467-
The `ChainElements` collection is ordered from the end-entity (leaf) certificate at index 0, through any intermediate certificates, to the trust anchor (root certificate) at the final index. This ordering is consistent across all platforms:
468-
469-
- On Windows, this matches the `CERT_CHAIN_CONTEXT` structure where `rgpChain[0]` is the end certificate and `rgpChain[cChain–1]` is the final chain element (root).
470-
- On Linux and macOS, this matches OpenSSL's `X509_STORE_CTX_get0_chain()`, which returns a `STACK_OF(X509)` ordered from leaf to root.
467+
The `ChainElements` collection is ordered from the end-entity (leaf) certificate at index 0, through any intermediate certificates, to the trust anchor (root certificate) at the final index. This ordering is consistent across all platforms.
471468
472469
## Examples
473470
The following code example demonstrates the ordering of chain elements:

0 commit comments

Comments
 (0)