feat: Add TLS Cert File flag (#434)

Co-authored-by: JB <28275108+mochi-co@users.noreply.github.com>
This commit is contained in:
dagehuifei
2025-01-31 02:25:18 +08:00
committed by GitHub
parent 9441e92595
commit d3b62035f9
2 changed files with 22 additions and 3 deletions

View File

@@ -57,7 +57,10 @@ func main() {
done <- true
}()
cert, err := tls.X509KeyPair(testCertificate, testPrivateKey)
// Load tls cert from your cert file
cert, err := tls.LoadX509KeyPair("replace_your_cert.pem", "replace_your_cert.key")
//cert, err := tls.X509KeyPair(testCertificate, testPrivateKey)
if err != nil {
log.Fatal(err)
}