Retain the CreateSession server certificate for the Session's lifetime - #1955
Merged
kevinherron merged 1 commit intoSep 9, 2026
Merged
Conversation
Part 4 5.7.3.1 binds ActivateSession client signatures and encrypted token secrets to the serverCertificate returned by CreateSession. The server verified and decrypted against the endpoint's current certificate or the carrying channel's, so a Session retained across a server certificate rotation could no longer be reactivated with credentials on a replacement SecureChannel. Capture the CreateSession certificate, chain, and key pair when the Session is created and use them for signature verification, user token decryption, X509 token signature checks, and enhanced user-token key selection. A Session created on an unsecured channel still uses the carrying channel's certificate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 4 5.7.3.1 binds ActivateSession client signatures and encrypted token secrets to the serverCertificate returned by CreateSession. The server verified and decrypted against the endpoint's current certificate or the carrying channel's, so a Session retained across a server certificate rotation could not be reactivated with credentials on a replacement SecureChannel.
Sessions now capture the CreateSession certificate, chain, and key pair at creation and use them for client signature verification, user token decryption, X509 token signature checks, and enhanced user-token key selection. A Session created on an unsecured channel still uses the carrying channel's certificate.
This is the server half of #1949, split out because it is an independent server correctness fix that benefits any client reactivating a retained Session after rotation. #1949 will be rebased onto this branch; its rotation integration test exercises credential reactivation against a live server and depends on this change.