ASP.NET Core HTTPS development certificate support
* Added support for generating the HTTPS development certificate on the CLI first run experience. * On first run, an HTTPS certificate will be set up on the current user local store. * The environment variable DOTNET_GENERATE_ASPNET_CERTIFICATE can be used to turn the feature off.
This commit is contained in:
parent
661f004b16
commit
ad8f3da826
24 changed files with 395 additions and 3 deletions
|
@ -141,6 +141,7 @@ namespace Microsoft.DotNet.Cli
|
|||
ConfigureDotNetForFirstTimeUse(
|
||||
nugetCacheSentinel,
|
||||
firstTimeUseNoticeSentinel,
|
||||
new AspNetCertificateSentinel(cliFallbackFolderPathCalculator),
|
||||
cliFallbackFolderPathCalculator,
|
||||
hasSuperUserAccess);
|
||||
|
||||
|
@ -204,6 +205,7 @@ namespace Microsoft.DotNet.Cli
|
|||
private static void ConfigureDotNetForFirstTimeUse(
|
||||
INuGetCacheSentinel nugetCacheSentinel,
|
||||
IFirstTimeUseNoticeSentinel firstTimeUseNoticeSentinel,
|
||||
IAspNetCertificateSentinel aspNetCertificateSentinel,
|
||||
CliFolderPathCalculator cliFolderPathCalculator,
|
||||
bool hasSuperUserAccess)
|
||||
{
|
||||
|
@ -219,10 +221,13 @@ namespace Microsoft.DotNet.Cli
|
|||
nugetPackagesArchiver,
|
||||
nugetCacheSentinel,
|
||||
cliFolderPathCalculator);
|
||||
var aspnetCertificateGenerator = new AspNetCoreCertificateGenerator();
|
||||
var dotnetConfigurer = new DotnetFirstTimeUseConfigurer(
|
||||
nugetCachePrimer,
|
||||
nugetCacheSentinel,
|
||||
firstTimeUseNoticeSentinel,
|
||||
aspNetCertificateSentinel,
|
||||
aspnetCertificateGenerator,
|
||||
environmentProvider,
|
||||
Reporter.Output,
|
||||
cliFolderPathCalculator.CliFallbackFolderPath,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue