Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate self-signed certificates for tests #23

Closed
floatdrop opened this issue Dec 15, 2014 · 3 comments · Fixed by #29
Closed

Generate self-signed certificates for tests #23

floatdrop opened this issue Dec 15, 2014 · 3 comments · Fixed by #29

Comments

@floatdrop
Copy link
Contributor

For now we are using certificates from request/request. We need to generate our own :)

@silverwind
Copy link

I use the pem module for this in another project, like this:

require("pem").createCertificate({ days: 365, selfSigned: true }, function (err, keys) {
  // keys.serviceKey = private key
  // keys.certificate = certificate
}

@floatdrop
Copy link
Contributor Author

Thanks @silverwind, it worked!

@sindresorhus
Copy link
Owner

Thanks for the tip @silverwind :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants