micahstubbs / lightpay

Atomic swaps for the Lightning Payment Network
https://lightpay.it/
MIT License
17 stars 2 forks source link

regenerate LND TLS cert #5

Closed micahstubbs closed 6 years ago

micahstubbs commented 6 years ago
micahstubbs commented 6 years ago
## Generate LND TLS cert

cd ~/.lnd
# delete old TLS cert and key
rm tls.cert
rm tls.key

# generate new TLS key 
openssl ecparam -genkey -name prime256v1 -out tls.key
openssl req -new -sha256 -key tls.key -out csr.csr -subj '/CN=localhost/O=lnd'

# generate new TLS cert
openssl req -x509 -sha256 -days 36500 -key tls.key -in csr.csr -out tls.cert
rm csr.csr
micahstubbs commented 6 years ago

attempt one, where I forget to delete the old tls cert first:

screen shot 2018-04-08 at 10 30 45 am
micahstubbs commented 6 years ago

attempt two:

screen shot 2018-04-08 at 10 35 11 am