Skip to content

Commit

Permalink
Added code to output basic auth password after keys generation (#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkruglos committed Feb 17, 2019
1 parent 3deea4c commit 4ce2af1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/generate_keys.sh
Expand Up @@ -9,4 +9,7 @@ mkdir -p ssh
mv private-key.pem ssh/id_rsa # ssh private key mv private-key.pem ssh/id_rsa # ssh private key
mv public_ssh ssh/id_rsa.pub # ssh public key mv public_ssh ssh/id_rsa.pub # ssh public key
rm certificate.pem # use certificate.pfx rm certificate.pem # use certificate.pfx
echo Basic Authentication password:
cat ssh/id_rsa | base64 -w 0 | md5sum | cut -d " " -f1 \
| python -c 'import sys;print sys.stdin.read().rstrip("\r\n").decode("hex")' | base64


0 comments on commit 4ce2af1

Please sign in to comment.