Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. crypto.js:145
  2. c.context.loadPKCS12(pfx);
  3. ^
  4. Error: mac verify failure
  5. at Object.exports.createCredentials (crypto.js:145:17)
  6. at Server (tls.js:1130:28)
  7. at new Server (https.js:35:14)
  8. at Object.exports.createServer (https.js:54:10)
  9. at Object.<anonymous> (C:iTollonServeriTollonServeriTollonServerapp.js:105:7)
  10. at Module._compile (module.js:456:26)
  11. at Object.Module._extensions..js (module.js:474:10)
  12. at Module.load (module.js:356:32)
  13. at Function.Module._load (module.js:312:12)
  14. at Function.Module.runMain (module.js:497:10)
  15.  
  16. // curl -k https://localhost:8000/
  17. var https = require('https');
  18. var fs = require('fs');
  19.  
  20. var options = {
  21. key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
  22. cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem')
  23. };
  24.  
  25. https.createServer(options, function (req, res) {
  26. res.writeHead(200);
  27. res.end("hello worldn");
  28. }).listen(8000);
  29. Or
  30.  
  31. var https = require('https');
  32. var fs = require('fs');
  33.  
  34. var options = {
  35. pfx: fs.readFileSync('server.pfx')
  36. };
  37.  
  38. https.createServer(options, function (req, res) {
  39. res.writeHead(200);
  40. res.end("hello worldn");
  41. }).listen(8000);
  42.  
  43. passphrase: 'password'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement