This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| For troubleshooting, two things to first try: | |
| brew install gnupg2 | |
| run `git config --global gpg.program gpg2`, to make sure git uses gpg2 and not gpg | |
| run `echo "test" | gpg2 --clearsign`, to make sure gpg2 itself is working | |
| If that all looks all right, one next thing to try: | |
| run `brew install pinentry` to ensure you have a good tool installed for passphrase entry | |
| If after that install and you re-try git commit and still get the "failed to sign the data" error: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var buffer = require('buffer'); | |
| var path = require('path'); | |
| var fs = require('fs'); | |
| function encode_base64(filename){ | |
| fs.readFile(path.join(__dirname,'/public/',filename),function(error,data){ | |
| if(error){ | |
| throw error; | |
| }else{ | |
| var buf = Buffer.from(data); |