Created
October 12, 2018 19:48
-
-
Save robinef/3a3716720b9318dc6de11f83dac58611 to your computer and use it in GitHub Desktop.
NodeJS Credhub example
This file contains 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
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