From 5440f1bc50f1af9284df653d5f5207587f598384 Mon Sep 17 00:00:00 2001 From: Goksan Date: Wed, 20 Mar 2024 23:31:50 +0000 Subject: [PATCH] Update readme examples to use TLS-ALPN const from ACMEz --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 375cabb6..af12a1ff 100644 --- a/README.md +++ b/README.md @@ -293,7 +293,7 @@ tlsConfig.NextProtos = append([]string{"h2", "http/1.1"}, tlsConfig.NextProtos.. // we can simply set its GetCertificate field and append the // TLS-ALPN challenge protocol to the NextProtos myTLSConfig.GetCertificate = magic.GetCertificate -myTLSConfig.NextProtos = append(myTLSConfig.NextProtos, tlsalpn01.ACMETLS1Protocol) +myTLSConfig.NextProtos = append(myTLSConfig.NextProtos, acmez.ACMETLS1Protocol) // the HTTP challenge has to be handled by your HTTP server; // if you don't have one, you should have disabled it earlier @@ -380,7 +380,7 @@ Or make two simple changes to an existing `tls.Config`: ```go myTLSConfig.GetCertificate = magic.GetCertificate -myTLSConfig.NextProtos = append(myTLSConfig.NextProtos, tlsalpn01.ACMETLS1Protocol} +myTLSConfig.NextProtos = append(myTLSConfig.NextProtos, acmez.ACMETLS1Protocol} ``` Then just make sure your TLS listener is listening on port 443: