mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-16 06:07:46 +02:00
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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user