LetsencryptCert 6.0.2
dotnet tool install --global LetsencryptCert --version 6.0.2
dotnet new tool-manifest
dotnet tool install --local LetsencryptCert --version 6.0.2
#tool dotnet:?package=LetsencryptCert&version=6.0.2
nuke :add-package LetsencryptCert --version 6.0.2
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-uweb
in /etc
(Linux) or c:\program data\letsencrypt-uweb
(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/LetsencryptCert.log 2>&1
This executes dns update every day at 4 AM (universal time). Last log is saved in /home/pi/logs/LetsencryptCert.log
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
This package has no dependencies.
Version | Downloads | Last Updated |
---|---|---|
6.0.2 | 215 | 6/8/2025 |
6.0.1 | 209 | 6/8/2025 |
6.0.0 | 212 | 6/8/2025 |
5.0.1 | 126 | 6/8/2025 |
5.0.0 | 154 | 6/4/2025 |
4.0.8 | 153 | 6/4/2025 |
4.0.7 | 160 | 6/4/2025 |
4.0.6 | 156 | 6/4/2025 |
4.0.5 | 208 | 3/29/2024 |
4.0.4 | 196 | 3/26/2024 |
4.0.3 | 210 | 3/24/2024 |
4.0.2 | 216 | 3/24/2024 |
4.0.1 | 203 | 3/23/2024 |
4.0.0 | 215 | 3/23/2024 |
3.0.0 | 292 | 11/21/2022 |
Converted to C#