private bool ShouldGenerateAspNetCertificate()
        {
#if EXCLUDE_ASPNETCORE
            return(false);
#else
            return(_dotnetFirstRunConfiguration.GenerateAspNetCertificate &&
                   !_aspNetCertificateSentinel.Exists());
#endif
        }
Example #2
0
        private bool ShouldGenerateAspNetCertificate()
        {
            var generateAspNetCertificate =
                _environmentProvider.GetEnvironmentVariableAsBool("DOTNET_GENERATE_ASPNET_CERTIFICATE", true);

            return(ShouldRunFirstRunExperience() &&
                   generateAspNetCertificate &&
                   !_aspNetCertificateSentinel.Exists());
        }