4 changed files with 45 additions and 32 deletions
@ -1,8 +1,20 @@ |
|||||
# Generate Node.js compatible certs |
# Generate Node.js compatible certs |
||||
echo >> file.txt |
echo >> gang.txt |
||||
echo "HERE CREATING COMPATIBLE CERTS" |
echo "here!" |
||||
|
|
||||
|
# If Lnd folder doesn't exist we have to create it |
||||
|
if [ ! -d ~/Library/Application\ Support/Lnd ]; then |
||||
|
mkdir -p ~/Library/Application\ Support/Lnd; |
||||
|
fi |
||||
|
|
||||
|
# Generate compatible certs |
||||
openssl ecparam -genkey -name prime256v1 -out ~/Library/Application\ Support/Lnd/tls.key |
openssl ecparam -genkey -name prime256v1 -out ~/Library/Application\ Support/Lnd/tls.key |
||||
openssl req -new -sha256 -key ~/Library/Application\ Support/Lnd/tls.key -out ~/Library/Application\ Support/Lnd/csr.csr -subj '/CN=localhost/O=lnd' |
openssl req -new -sha256 -key ~/Library/Application\ Support/Lnd/tls.key -out ~/Library/Application\ Support/Lnd/csr.csr -subj '/CN=localhost/O=lnd' |
||||
openssl req -x509 -sha256 -days 3650 -key ~/Library/Application\ Support/Lnd/tls.key -in ~/Library/Application\ Support/Lnd/csr.csr -out ~/Library/Application\ Support/Lnd/tls.cert |
openssl req -x509 -sha256 -days 3650 -key ~/Library/Application\ Support/Lnd/tls.key -in ~/Library/Application\ Support/Lnd/csr.csr -out ~/Library/Application\ Support/Lnd/tls.cert |
||||
rm ~/Library/Application\ Support/Lnd/csr.csr |
rm ~/Library/Application\ Support/Lnd/csr.csr |
||||
echo "DONE CREATING COMPATIBLE CERTS YO" |
|
||||
|
# Linux |
||||
|
# openssl ecparam -genkey -name prime256v1 -out ~/.lnd/tls.key |
||||
|
# openssl req -new -sha256 -key ~/.lnd/tls.key -out ~/.lnd/csr.csr -subj '/CN=localhost/O=lnd' |
||||
|
# openssl req -x509 -sha256 -days 3650 -key ~/.lnd/tls.key -in ~/.lnd/csr.csr -out ~/.lnd/tls.cert |
||||
|
# rm ~/.lnd/csr.csr |
@ -0,0 +1 @@ |
|||||
|
|
Binary file not shown.
Loading…
Reference in new issue