ACME TLS implementation using TLS-ALPN-01 - closes #160

This commit is contained in:
mdecimus
2024-01-05 18:44:22 +01:00
parent 172c8afae0
commit ffba9b5a61
43 changed files with 2285 additions and 464 deletions

Binary file not shown.

View File

@@ -7,6 +7,7 @@ enable = true
implicit = false
timeout = "1m"
certificate = "default"
#acme = "letsencrypt"
#sni = [{subject = "", certificate = ""}]
#protocols = ["TLSv1.2", "TLSv1.3"]
#ciphers = [ "TLS13_AES_256_GCM_SHA384", "TLS13_AES_128_GCM_SHA256",
@@ -16,6 +17,14 @@ certificate = "default"
# "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256"]
ignore-client-order = true
[acme."letsencrypt"]
directory = "https://acme-v02.api.letsencrypt.org/directory"
#directory = "https://acme-staging-v02.api.letsencrypt.org/directory"
contact = ["postmaster@%{DEFAULT_DOMAIN}%"]
cache = "%{BASE_PATH}%/etc/acme"
port = 443
renew-before = "30d"
[certificate."default"]
cert = "file://__CERT_PATH__"
private-key = "file://__PK_PATH__"

View File

@@ -3,6 +3,9 @@
#############################################
[server.listener."jmap"]
bind = ["[::]:8080"]
url = "https://%{HOST}%:8080"
protocol = "jmap"
bind = ["[::]:443"]
url = "https://%{HOST}%"
#bind = ["[::]:8080"]
#url = "https://%{HOST}%:8080"