LetsencryptCert 10.1.0

dotnet tool install --global LetsencryptCert --version 10.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local LetsencryptCert --version 10.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=LetsencryptCert&version=10.1.0
                    
nuke :add-package LetsencryptCert --version 10.1.0
                    

UwebServerCert

LetsEncrypt bot to automatically create an LetsEncrypt certificate for a Web Server

Installation

dotnet tool install LetsencryptCert --global

Executing the tool for the first time

Copy cert.json to current directory with following content:

{
    "account": "<account@domain.de>",
    "domains": [
        "<domain 1>", "<domain 2>", "<domain 3>"
    ],
    "data": {
        "countryName": "<my country>",
        "state": "<my state",
        "locality": "<my locality>",
        "organization": "<my organization>",
        "organizationUnit": "<my organization unit>",
        "commonName": "<my common name, main domain>"
    }
}

LetsencryptCert -create

This lets LetsencryptCert create an account.

Create a file letsencrypt-cert in /etc (Linux) or c:\program data\letsencrypt-cert (Windows). This text file should contain a password for the to be created pfx certificate.

Obtaining certificate (test mode)

After executing the tool for the first time and having created an account, you can obtain a certificate from LetsEncrypt by running the tool:

LetsencryptCert

Your webserver has to serve the token to LetsEncrypt.

Obtaining certificate

To get a secure certificate, you have to set the command line argument -prod:

LetsencryptCert -create -prod
LetsencryptCert -prod

Executing tool every day (Linux)

crontab -e

Append

PATH=$PATH:/home/pi/.dotnet/tools
0 4 * * * LetsencryptCert > /home/pi/logs/letsencrypt.log 2>&1

This executes LetsEncrypt update every day at 4 AM . Last log is saved in /home/pi/logs/LetsencryptCert.log

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

This package has no dependencies.

Version Downloads Last Updated
10.1.0 95 5/24/2026
10.0.0 106 5/22/2026
6.0.2 352 6/8/2025
6.0.1 309 6/8/2025
6.0.0 312 6/8/2025
5.0.1 226 6/8/2025
5.0.0 254 6/4/2025
4.0.8 267 6/4/2025
4.0.7 258 6/4/2025
4.0.6 251 6/4/2025
4.0.5 309 3/29/2024
4.0.4 293 3/26/2024
4.0.3 313 3/24/2024
4.0.2 323 3/24/2024
4.0.1 317 3/23/2024
4.0.0 326 3/23/2024
3.0.0 399 11/21/2022

.NET 10