-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Minimal changes to support certificate chain-preloading at startup #24934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -385,10 +385,9 @@ public void FallsBackToHttpsConnectionAdapterCertificate() | |
{ | ||
{ "www.example.org", new SniConfig() } | ||
}; | ||
|
||
var fallbackOptions = new HttpsConnectionAdapterOptions | ||
{ | ||
ServerCertificate = new X509Certificate2() | ||
ServerCertificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword") | ||
}; | ||
|
||
var sniOptionsSelector = new SniOptionsSelector( | ||
|
@@ -761,7 +760,7 @@ public X509Certificate2 LoadCertificate(CertificateConfig certInfo, string endpo | |
return null; | ||
} | ||
|
||
var cert = new X509Certificate2(); | ||
var cert = TestResources.GetTestCertificate(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @halter73 introduced IsTestMock because he wasn't using a real cert here. Something about not wanting to create a large number of real certs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is that a real problem? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When @halter73 is back, if the test haven't exploded by then can give me some feedback. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd recommend storing the test cert in a static like we do for some other tests and removing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The second PR does it. I'll do the work in there. |
||
CertToPathDictionary.Add(cert, certInfo.Path); | ||
return cert; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.