Skip to content

Commit

Permalink
Make CertificateLoader public #11312 (#11655)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tratcher committed Jun 27, 2019
1 parent b957b75 commit 2e7c52d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ public partial interface IHttpRequestLineHandler
}
namespace Microsoft.AspNetCore.Server.Kestrel.Https
{
public static partial class CertificateLoader
{
public static System.Security.Cryptography.X509Certificates.X509Certificate2 LoadFromStoreCert(string subject, string storeName, System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, bool allowInvalid) { throw null; }
}
public enum ClientCertificateMode
{
NoCertificate = 0,
Expand All @@ -262,10 +266,3 @@ public partial class HttpsConnectionAdapterOptions
public void AllowAnyClientCertificate() { }
}
}
namespace Microsoft.AspNetCore.Server.Kestrel.Https.Internal
{
public static partial class CertificateLoader
{
public static System.Security.Cryptography.X509Certificates.X509Certificate2 LoadFromStoreCert(string subject, string storeName, System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, bool allowInvalid) { throw null; }
}
}
2 changes: 1 addition & 1 deletion src/Servers/Kestrel/Core/src/CertificateLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Security.Cryptography.X509Certificates;
using Microsoft.AspNetCore.Server.Kestrel.Core;

namespace Microsoft.AspNetCore.Server.Kestrel.Https.Internal
namespace Microsoft.AspNetCore.Server.Kestrel.Https
{
public static class CertificateLoader
{
Expand Down
2 changes: 1 addition & 1 deletion src/Servers/Kestrel/samples/SampleApp/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Server.Kestrel.Core;
using Microsoft.AspNetCore.Server.Kestrel.Https.Internal;
using Microsoft.AspNetCore.Server.Kestrel.Https;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Linq;
using System.Security.Cryptography.X509Certificates;
using Microsoft.AspNetCore.Server.Kestrel.Https.Internal;
using Microsoft.AspNetCore.Server.Kestrel.Https;
using Microsoft.AspNetCore.Testing;
using Microsoft.Extensions.Logging.Testing;
using Xunit;
Expand Down

0 comments on commit 2e7c52d

Please sign in to comment.