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
//Sign with Remote.it Http-Signature | |
const urlTool = require('url') | |
function computeHttpSignature(config, headerHash) { | |
let sig = 'Signature keyId="${keyId}",algorithm="${algorithm}",headers="${headers}",signature="${signature}"' | |
// compute sig here | |
let signingBase = '' | |
config.headers.forEach(function(h){ | |
if (signingBase !== '') { signingBase += '\n' } |