lnrpc: lets encrypt

This commit enables lnd to request and renew a Let's Encrypt
certificate. This certificate is used both for the grpc as well as the
rest listeners. It allows clients to connect without having a copy of
the (public) server certificate.

Co-authored-by: Vegard Engen <vegard@engen.priv.no>
This commit is contained in:
Joost JagerandVegard Engen committed 2020-09-15 09:59:09 +02:00
1 parent 999ffffa37
commit 403d72b468
6 files changed
+133 -22

No files matched your search

+2 -1
View File
@@ -119,10 +119,11 @@ func TestTLSAutoRegeneration(t *testing.T) {
TLSKeyPath: keyPath,
RPCListeners: rpcListeners,
}
_, _, _, err = getTLSConfig(cfg)
_, _, _, cleanUp, err := getTLSConfig(cfg)
if err != nil {
t.Fatalf("couldn't retrieve TLS config")
}
defer cleanUp()
// Grab the certificate to test that getTLSConfig did its job correctly
// and generated a new cert.