Skip to content
New issue

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

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

Already on GitHub? # to your account

specify the cipher in code? #371

Open
Pomax opened this issue Oct 13, 2023 · 0 comments
Open

specify the cipher in code? #371

Pomax opened this issue Oct 13, 2023 · 0 comments

Comments

@Pomax
Copy link

Pomax commented Oct 13, 2023

I tried using this in combination with puppeteer but it rejects the certs due to the fact that the browser doesn't accept the certificate cypher. Is there a way to say something like this?

pem.createCertificate({ days: 1, selfSigned: true, cipher: `TLS_AES_256_GCM_SHA384` }, function (err, keys) {
  if (err) {
    throw err
  }
  https.createServer({ key: keys.clientKey, cert: keys.certificate }, function (req, res) {
    res.end('o hai!')
  }).listen(443)
})
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant