lnd
                                
                                 lnd copied to clipboard
                                
                                    lnd copied to clipboard
                            
                            
                            
                        cert: add TLS reloader
This PR paves the way for #6527, which adds the ability to encrypt a Tls keys on disk. We originally had this all in one PR, but needed to split out this refactoring up because changes to the cert module need to be added in another PR.
Summary of Changes:
- Adds a TLSReloader for reloading the tls certificate without restarting the server
- Updates GenCertPair function so that it returns cert data
Thank you for the review @sputn1ck! I made some of those changes ~ a couple of questions for you above.
Awesome, made that change @sputn1ck. Also my bad, looks like I accidentally removed @Roasbeef's request for review here! But I don't seem to have the ability to re-add the request.
@sputn1ck: review reminder @orbitalturtle, remember to re-request review from reviewers when ready
Thanks as always for the review @guggero ! I made those changes.
Fabulous thanks, addressed those nits @guggero.