Skip to content

Instantly share code, notes, and snippets.

@Xeus
Created August 6, 2013 22:55
Show Gist options
  • Save Xeus/6169564 to your computer and use it in GitHub Desktop.
Save Xeus/6169564 to your computer and use it in GitHub Desktop.
BEAST attack mitigation on node.js
// via http://www.ericmartindale.com/2012/07/19/mitigating-the-beast-tls-attack-in-nodejs/
var options = {
key: fs.readFileSync('key.pem'),
cert: fs.readFileSync('cert.pem'),
ciphers: 'ECDHE-RSA-AES256-SHA:AES256-SHA:RC4-SHA:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM',
honorCipherOrder: true
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment