cookie file cleaned

This commit is contained in:
kexkey
2019-04-04 18:01:16 -04:00
committed by kexkey
parent 136a49fd27
commit e8d9ea5cb1
3 changed files with 7 additions and 3 deletions

View File

@@ -124,7 +124,7 @@ checksparkwallet() {
echo -en "\r\n\e[1;36mTesting Spark Wallet... " > /dev/console
local rc
rc=$(curl -s -o /dev/null -w "%{http_code}" --cacert /gatekeeper/certs/cert.pem https://gatekeeper/sparkwallet/)
rc=$(curl -s -o /dev/null -w "%{http_code}" http://sparkwallet:9737)
[ "${rc}" -ne "401" ] && return 400
echo -e "\e[1;36mSpark Wallet rocks!" > /dev/console

View File

@@ -0,0 +1,5 @@
# How to create the hmac for the cookie file:
```
# echo -n "access-key" | openssl dgst -hmac "cyphernode:sparkwallet" -sha256 -binary | base64 | sed 's/[\+\W]//g'
```

View File

@@ -1,2 +1 @@
# echo -n "access-key" | openssl dgst -hmac "cyphernode:sparkwallet" -sha256 -binary | base64 | sed 's/[\+\W]//g'
cyphernode:sparkwallet:FoeDdQw5yl7pPfqdlGy3OEk/txGqyJjSbVtffhzs7kc=
cyphernode:sparkwallet:FoeDdQw5yl7pPfqdlGy3OEk/txGqyJjSbVtffhzs7kc=