Last active
March 16, 2017 13:34
-
-
Save Maarten88/27bf1ef57074d3dfe77c0bc379e9ad1b to your computer and use it in GitHub Desktop.
Template Program.cs
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
X509Certificate2 certificate = [some certificate including key]; | |
var host = new WebHostBuilder() | |
.UseKestrel(options => options.UseHttps(certificate)) | |
.UseContentRoot(Directory.GetCurrentDirectory()) | |
.UseIISIntegration() | |
.UseStartup<Startup>() | |
.Build(); | |
host.Run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment