Skip to content

Instantly share code, notes, and snippets.

@robinef
Created October 12, 2018 19:48
Show Gist options
  • Save robinef/3a3716720b9318dc6de11f83dac58611 to your computer and use it in GitHub Desktop.
Save robinef/3a3716720b9318dc6de11f83dac58611 to your computer and use it in GitHub Desktop.
NodeJS Credhub example
const options = {
hostname: 'my.server.com',
port: 443,
path: "/",
method: 'GET',
key: services.kinja.credentials.value.private_key,
cert: services.kinja.credentials.value.certificate
};
options.agent = new https.Agent(options);
const req = https.request(options, (resCred) => {});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment