TlsCertificateLoader 1.0.0

Additional Details

Refreshing of certificates works on 1.0.4+

There is a newer version of this package available.
See the version list below for details.
dotnet add package TlsCertificateLoader --version 1.0.0                
NuGet\Install-Package TlsCertificateLoader -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TlsCertificateLoader" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TlsCertificateLoader --version 1.0.0                
#r "nuget: TlsCertificateLoader, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TlsCertificateLoader as a Cake Addin
#addin nuget:?package=TlsCertificateLoader&version=1.0.0

// Install TlsCertificateLoader as a Cake Tool
#tool nuget:?package=TlsCertificateLoader&version=1.0.0                

TlsCertificateLoader

Allows loading of TLS certificates for .NET 6.0 Kestrel web applications, allowing for refreshing of certificates as well as compatibility with HTTP/3.

To use:

options.ListenAnyIp(433, o =>
{
     o.SetTlsHandshakeCallbackOptions(fullChainPath, privateKeyPath);
     o.SetHttpsConnectionAdapterOptions(fullChainPath, privateKeyPath);
     o.Protocols = HttpProtocols.Http1AndHttp2AndHttp3;
});

And to refresh (eg either on a Timer or watching a directory via PhysicalFileProvider):

TlsCertificateLoader.TlsCertificateLoader.RefreshX509Certificate2Collection();
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.3.1 176 9/21/2024
2.2.10 695 12/5/2023
2.2.9 1,028 2/13/2023
2.2.8 413 1/29/2023
2.2.5 492 12/16/2022
2.2.4 355 12/13/2022
2.2.0 325 12/13/2022
2.1.2 353 12/12/2022
2.1.1 479 11/19/2022
2.0.8 480 9/17/2022
2.0.7 488 6/29/2022
2.0.6 511 3/13/2022
2.0.5 449 3/13/2022
2.0.3 448 3/12/2022
2.0.2 443 3/11/2022
2.0.1 355 11/27/2021
1.1.7 333 11/27/2021
1.1.4 755 11/21/2021
1.1.3 399 11/14/2021
1.1.2 434 11/14/2021
1.1.1 332 11/13/2021
1.1.0 340 11/12/2021
1.0.5 324 11/10/2021
1.0.4 334 11/9/2021
1.0.3 390 11/9/2021 1.0.3 is deprecated because it has critical bugs.
1.0.2 474 11/7/2021 1.0.2 is deprecated because it has critical bugs.
1.0.0 495 11/6/2021 1.0.0 is deprecated because it has critical bugs.

First release