mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 13:52:55 +02:00
lnd: bump lnd/cert version
This commit bumps the lnd/cert version to 1.2.1 and fixes all call sites where cert.GenCertPair was called.
This commit is contained in:
@@ -219,8 +219,7 @@ func (t *TLSManager) generateCertPair(keyRing keychain.SecretKeyRing) error {
|
||||
|
||||
rpcsLog.Infof("Generating TLS certificates...")
|
||||
certBytes, keyBytes, err := cert.GenCertPair(
|
||||
"lnd autogenerated cert", t.cfg.TLSCertPath,
|
||||
t.cfg.TLSKeyPath, t.cfg.TLSExtraIPs,
|
||||
"lnd autogenerated cert", t.cfg.TLSExtraIPs,
|
||||
t.cfg.TLSExtraDomains, t.cfg.TLSDisableAutofill,
|
||||
t.cfg.TLSCertDuration,
|
||||
)
|
||||
@@ -368,9 +367,9 @@ func (t *TLSManager) maintainCert(
|
||||
|
||||
rpcsLog.Infof("Renewing TLS certificates...")
|
||||
certBytes, keyBytes, err := cert.GenCertPair(
|
||||
"lnd autogenerated cert", t.cfg.TLSCertPath, t.cfg.TLSKeyPath,
|
||||
t.cfg.TLSExtraIPs, t.cfg.TLSExtraDomains,
|
||||
t.cfg.TLSDisableAutofill, t.cfg.TLSCertDuration,
|
||||
"lnd autogenerated cert", t.cfg.TLSExtraIPs,
|
||||
t.cfg.TLSExtraDomains, t.cfg.TLSDisableAutofill,
|
||||
t.cfg.TLSCertDuration,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -509,9 +508,8 @@ func (t *TLSManager) loadEphemeralCertificate() ([]byte, error) {
|
||||
// Pass in a blank string for the key path so the
|
||||
// function doesn't write them to disk.
|
||||
certBytes, keyBytes, err := cert.GenCertPair(
|
||||
"lnd ephemeral autogenerated cert", tmpCertPath,
|
||||
"", t.cfg.TLSExtraIPs, t.cfg.TLSExtraDomains,
|
||||
t.cfg.TLSDisableAutofill, tmpValidity,
|
||||
"lnd ephemeral autogenerated cert", t.cfg.TLSExtraIPs,
|
||||
t.cfg.TLSExtraDomains, t.cfg.TLSDisableAutofill, tmpValidity,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user