File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/Shared/CertificateGeneration Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 55using System . Diagnostics . CodeAnalysis ;
66using System . Diagnostics . Tracing ;
77using System . Linq ;
8+ using System . Net ;
89using System . Runtime . InteropServices ;
910using System . Security . Cryptography ;
1011using System . Security . Cryptography . X509Certificates ;
@@ -19,8 +20,8 @@ namespace Microsoft.AspNetCore.Certificates.Generation;
1920
2021internal abstract class CertificateManager
2122{
22- internal const int CurrentAspNetCoreCertificateVersion = 5 ;
23- internal const int CurrentMinimumAspNetCoreCertificateVersion = 5 ;
23+ internal const int CurrentAspNetCoreCertificateVersion = 6 ;
24+ internal const int CurrentMinimumAspNetCoreCertificateVersion = 6 ;
2425
2526 // OID used for HTTPS certs
2627 internal const string AspNetHttpsOid = "1.3.6.1.4.1.311.84.1.1" ;
@@ -697,6 +698,8 @@ internal X509Certificate2 CreateAspNetCoreHttpsDevelopmentCertificate(DateTimeOf
697698 sanBuilder . AddDnsName ( InternalWildcardHttpsDnsName ) ;
698699 sanBuilder . AddDnsName ( LocalhostDockerHttpsDnsName ) ;
699700 sanBuilder . AddDnsName ( ContainersDockerHttpsDnsName ) ;
701+ sanBuilder . AddIpAddress ( IPAddress . Loopback ) ;
702+ sanBuilder . AddIpAddress ( IPAddress . IPv6Loopback ) ;
700703
701704 var keyUsage = new X509KeyUsageExtension ( X509KeyUsageFlags . KeyEncipherment | X509KeyUsageFlags . DigitalSignature , critical : true ) ;
702705 var enhancedKeyUsage = new X509EnhancedKeyUsageExtension (
You can’t perform that action at this time.
0 commit comments