Created
March 16, 2017 14:44
-
-
Save Maarten88/d3956bcd770c700298a4ec5d3a2675ff to your computer and use it in GitHub Desktop.
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
.UseKestrel(async options => { | |
if (secureUrls.Any()) | |
{ | |
var certificateManager = options.ApplicationServices.GetService<ICertificateManager>(); | |
var certificate = await certificateManager.GetCertificate(httpsDomains); | |
if (certificate != null) | |
options.UseHttps(certificate); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment