182 references to X509KeyStorageFlags
dotnet-dev-certs (6)
IIS.FunctionalTests (2)
IIS.LongTests (2)
IIS.NewHandler.FunctionalTests (2)
IIS.NewShim.FunctionalTests (2)
IIS.ShadowCopy.Tests (2)
IISExpress.FunctionalTests (2)
Infrastructure.Common (7)
InMemory.FunctionalTests (1)
Interop.FunctionalTests (1)
Microsoft.AspNetCore.DataProtection.Extensions.Tests (2)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (6)
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Tests (10)
KestrelConfigurationLoaderTests.cs (10)
249var certificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
290var devCert = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
416var certificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
463var certificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
512var certificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
706var certificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
859var oldCertificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
862var newCertificate = new X509Certificate2(TestResources.TestCertificatePath, "testPassword", X509KeyStorageFlags.Exportable);
957var oldCertificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
962var newCertificate = new X509Certificate2(TestResources.TestCertificatePath, "testPassword", X509KeyStorageFlags.Exportable);
Microsoft.Build.Tasks.Core (1)
mscorlib (1)
netstandard (1)
System.Security.Cryptography (95)
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (23)
119/// <see cref="LoadPkcs12Collection(ReadOnlySpan{byte},ReadOnlySpan{char},X509KeyStorageFlags,Pkcs12LoaderLimits?)" />,
131X509KeyStorageFlags keyStorageFlags = X509KeyStorageFlags.DefaultKeySet,
178/// <see cref="LoadPkcs12Collection(byte[],string?, X509KeyStorageFlags,Pkcs12LoaderLimits?)" />,
190X509KeyStorageFlags keyStorageFlags = X509KeyStorageFlags.DefaultKeySet,
249/// <see cref="LoadPkcs12CollectionFromFile(string,string?, X509KeyStorageFlags,Pkcs12LoaderLimits?)" />,
261X509KeyStorageFlags keyStorageFlags = X509KeyStorageFlags.DefaultKeySet,
311/// <see cref="LoadPkcs12CollectionFromFile(string, ReadOnlySpan{char}, X509KeyStorageFlags,Pkcs12LoaderLimits?)" />,
323X509KeyStorageFlags keyStorageFlags = X509KeyStorageFlags.DefaultKeySet,
372X509KeyStorageFlags keyStorageFlags = X509KeyStorageFlags.DefaultKeySet,
420X509KeyStorageFlags keyStorageFlags = X509KeyStorageFlags.DefaultKeySet,
483X509KeyStorageFlags keyStorageFlags = X509KeyStorageFlags.DefaultKeySet,
535X509KeyStorageFlags keyStorageFlags = X509KeyStorageFlags.DefaultKeySet,
552X509KeyStorageFlags keyStorageFlags,
558X509KeyStorageFlags keyStorageFlags,
688static partial void ValidateKeyStorageFlagsCore(X509KeyStorageFlags keyStorageFlags);
System\Security\Cryptography\X509Certificates\X509Certificate.cs (17)
69Pal = CertificatePal.FromBlob(data, SafePasswordHandle.InvalidHandle, X509KeyStorageFlags.DefaultKeySet);
76: this(rawData, password, X509KeyStorageFlags.DefaultKeySet)
84: this(rawData, password, X509KeyStorageFlags.DefaultKeySet)
90public X509Certificate(byte[] rawData, string? password, X509KeyStorageFlags keyStorageFlags)
106public X509Certificate(byte[] rawData, SecureString? password, X509KeyStorageFlags keyStorageFlags)
119private protected X509Certificate(ReadOnlySpan<byte> rawData, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags)
147: this(fileName, (string?)null, X509KeyStorageFlags.DefaultKeySet)
154: this(fileName, password, X509KeyStorageFlags.DefaultKeySet)
162: this(fileName, password, X509KeyStorageFlags.DefaultKeySet)
168public X509Certificate(string fileName, string? password, X509KeyStorageFlags keyStorageFlags)
180private protected X509Certificate(string fileName, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags)
196public X509Certificate(string fileName, SecureString? password, X509KeyStorageFlags keyStorageFlags) : this()
583public virtual void Import(byte[] rawData, string? password, X509KeyStorageFlags keyStorageFlags)
590public virtual void Import(byte[] rawData, SecureString? password, X509KeyStorageFlags keyStorageFlags)
602public virtual void Import(string fileName, string? password, X509KeyStorageFlags keyStorageFlags)
609public virtual void Import(string fileName, SecureString? password, X509KeyStorageFlags keyStorageFlags)
680internal static void ValidateKeyStorageFlags(X509KeyStorageFlags keyStorageFlags) =>
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (10)
74public X509Certificate2(byte[] rawData, string? password, X509KeyStorageFlags keyStorageFlags)
82public X509Certificate2(byte[] rawData, SecureString? password, X509KeyStorageFlags keyStorageFlags)
117public X509Certificate2(ReadOnlySpan<byte> rawData, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0)
157public X509Certificate2(string fileName, string? password, X509KeyStorageFlags keyStorageFlags)
165public X509Certificate2(string fileName, SecureString? password, X509KeyStorageFlags keyStorageFlags)
172public X509Certificate2(string fileName, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0)
642public override void Import(byte[] rawData, string? password, X509KeyStorageFlags keyStorageFlags)
649public override void Import(byte[] rawData, SecureString? password, X509KeyStorageFlags keyStorageFlags)
661public override void Import(string fileName, string? password, X509KeyStorageFlags keyStorageFlags)
668public override void Import(string fileName, SecureString? password, X509KeyStorageFlags keyStorageFlags)
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (7)
156using (ILoaderPal storePal = StorePal.FromBlob(rawData, SafePasswordHandle.InvalidHandle, X509KeyStorageFlags.DefaultKeySet))
163public void Import(byte[] rawData, string? password, X509KeyStorageFlags keyStorageFlags = 0)
183public void Import(ReadOnlySpan<byte> rawData, string? password, X509KeyStorageFlags keyStorageFlags = 0)
201public void Import(ReadOnlySpan<byte> rawData, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0)
217using (ILoaderPal storePal = StorePal.FromFile(fileName, SafePasswordHandle.InvalidHandle, X509KeyStorageFlags.DefaultKeySet))
224public void Import(string fileName, string? password, X509KeyStorageFlags keyStorageFlags = 0)
250public void Import(string fileName, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0)
System.Security.Cryptography.X509Certificates (1)
Templates.Blazor.Tests (6)
Templates.Blazor.WebAssembly.Auth.Tests (6)
Templates.Blazor.WebAssembly.Tests (6)
Templates.Mvc.Tests (6)
Templates.Tests (6)