-
-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
I have the following code running an older version of what was then called LetsEncrypt:
private static void ConfigureWebHostForHttpAndHttps(IWebHostBuilder webHostBuilder, StandardConfiguration standardConfiguration)
{
webHostBuilder.UseUrls($"http://0.0.0.0:{standardConfiguration.Http.HttpPort}", $"https://0.0.0.0:{standardConfiguration.Http.HttpsPort}");
webHostBuilder.UseKestrel(kestrelOptions =>
kestrelOptions.ConfigureHttpsDefaults(httpsOptions =>
{
httpsOptions.ServerCertificateSelector = SslCertificateSelector;
httpsOptions.SslProtocols = sslProtocols;
httpsOptions.OnAuthenticate = SslOptionConfigurer;
}));
}
private static X509Certificate2 SslCertificateSelector(ConnectionContext c, string s) =>
LetsEncryptRenewalService.Certificate;I want to update to a newer version of EncryptWeMust, however the above Certificate on LetsEncryptRenewalService was marked as internal in this commit.
How do I fetch the certificate now?
Edit: I suppose I could be naughty and get it with reflection, but I'd rather do it the right way.
Metadata
Metadata
Assignees
Labels
No labels