-
-
Notifications
You must be signed in to change notification settings - Fork 939
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
General improvements to HTTPS API (Second Edition) #1435
Conversation
@@ -858,6 +858,20 @@ export interface HTTPSOptions { | |||
The passphrase to decrypt the `options.https.key` (if different keys have different passphrases refer to `options.https.key` documentation). | |||
*/ | |||
passphrase?: SecureContextOptions['passphrase']; | |||
|
|||
// TODO add comment | |||
ciphers?: SecureContextOptions['ciphers']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this support an array of ciphers instead of string with :
?
|
||
const createPrivateKey = pify(pem.createPrivateKey); | ||
const createCSR = pify(pem.createCSR); | ||
const createCertificate = pify(pem.createCertificate); | ||
const createPkcs12 = pify(pem.createPkcs12); | ||
|
||
test('https request without ca', withHttpsServer(), async (t, server, got) => { | ||
const ciphers = tls.getCiphers().map(cipher => cipher.toUpperCase()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be more readable if you used destructuring here.
Can you fix the merge conflicts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed hat I had this review pending for months. OMG.
@@ -858,6 +858,20 @@ export interface HTTPSOptions { | |||
The passphrase to decrypt the `options.https.key` (if different keys have different passphrases refer to `options.https.key` documentation). | |||
*/ | |||
passphrase?: SecureContextOptions['passphrase']; | |||
|
|||
// TODO add comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// TODO: example
Yes, I think it's better to close this PR and open a new one, but recently I haven't been able to work on this repo. |
No worries! |
Following the previous "General improvements to HTTPS API" (#1255) this PR is going to add the remaining HTTPS options described in #1306 (or, at least, most of them).
This PR is still WIP.
Implemented options to date (completed on "code, test and docs"):
ciphers
: code, testhonorCipherOrder
: code, testminVersion
: code, testmaxVersion
: code, testChecklist
(Partially) Fixes #1306
Fixes #1299