Skip to content

Instantly share code, notes, and snippets.

@mallond
Created April 30, 2015 20:54
Show Gist options
  • Save mallond/f2bfbe09f353a3d0c0f5 to your computer and use it in GitHub Desktop.
Save mallond/f2bfbe09f353a3d0c0f5 to your computer and use it in GitHub Desktop.
secureProtocal SSL
// Forward to HTTP with Options
// Stop using SSLV3 (no good)
var options =
{
host: config.uri_velocity.host,
port: config.uri_velocity.port,
path: config.uri_velocity.path,
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length': Buffer.byteLength(postData),
'Authorization': 'Basic XXXXXXXXXX'
},
secureProtocol: 'TLSv1_method'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment