Class LetsEncryptInstaller
- Namespace
- FishMMO.Installer
- Assembly
- FishMMO-Installer.dll
Handles Let's Encrypt certificate installation and renewal bootstrap for NGINX on Windows and Linux distributions supported by this installer.
public static class LetsEncryptInstaller
- Inheritance
-
LetsEncryptInstaller
- Inherited Members
Fields
PorkbunCredentialsPath
Root-only Porkbun API credentials read by PorkbunHookPath.
public const string PorkbunCredentialsPath = "/etc/letsencrypt/fishmmo-porkbun.ini"
Field Value
PorkbunHookPath
Where the Porkbun DNS-01 hook is installed. Certbot's renewal configuration records this path.
public const string PorkbunHookPath = "/etc/letsencrypt/fishmmo-porkbun-hook.py"
Field Value
Methods
InstallLetsEncryptCertificate()
Prompts for certificate configuration and installs/renews certificates for the current OS.
public static Task InstallLetsEncryptCertificate()
Returns
PointDnsRecordsAsync()
Points the game's host names (api, play, game, panel by default) at this server's public IPv4 address with A records at Porkbun, using the same root-only API credentials as the DNS challenge. Shows the changes first and applies them only after confirmation.
public static Task PointDnsRecordsAsync()