| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The `tls` module's `createServer` and `createSecureContext` accept `key` option and it can be an array of keys as well. This patch explains the format of the entries in that array. Corresponding code: https://github.com/nodejs/node/blob/v4.1.1/lib/_tls_common.js#L73-L90
|
@thefourtheye perhaps, it may be relevant to mention that the keys should use different algorithms? RSA, ECDSA, DSA? |
Sorry, something went wrong.
|
@indutny But we don't validate if the keys use different algorithms, right? https://github.com/nodejs/node/blob/v4.1.1/src/node_crypto.cc#L457-L500 |
Sorry, something went wrong.
|
@thefourtheye hm... I'm sure we don't, but OpenSSL may. |
Sorry, something went wrong.
|
@indutny Oh okay then. I included a line to say that the keys should use different algorithms. Should we explicitly give examples of algorithms? |
Sorry, something went wrong.
|
When would one want to use multiple keys? |
Sorry, something went wrong.
|
When you have two certs: ECDSA and RSA. Like I do on https://blog.indutny.com/ |
Sorry, something went wrong.
There was a problem hiding this comment.
What kind of algorithms is and the keys should use different algorithms referring to?
Sorry, something went wrong.
There was a problem hiding this comment.
ping @thefourtheye: could you clarify? Otherwise LGTM
Sorry, something went wrong.
There was a problem hiding this comment.
@silverwind The examples are ECDSA and RSA. Should we really mention them in the docs?
Sorry, something went wrong.
There was a problem hiding this comment.
My gut thought is to remove that and the keys should use different algorithms altogether.
Sorry, something went wrong.
There was a problem hiding this comment.
@silverwind Hmmm, it was @indutny's suggestion. Let's see what he feels about this.
Sorry, something went wrong.
There was a problem hiding this comment.
Ah, I see. I think your wording is a bit confusing. How about something like this?
`key`: A string or `Buffer` containing the private key of the server in
PEM format. To support multiple keys using different algorithms, an array
can be provided. It can either be a plain array of keys, or an array of
objects in the form of {pem: key, passphrase: passphrase}. (Required)
Sorry, something went wrong.
There was a problem hiding this comment.
@silverwind Ya, it looks better. I updated the PR now. PTAL.
Sorry, something went wrong.
|
Bump! |
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
The `tls` module's `createServer` and `createSecureContext` accept `key` option and it can be an array of keys as well. This patch explains the format of the entries in that array. Corresponding code: https://github.com/nodejs/node/blob/v4.1.1/lib/_tls_common.js#L73-L90 PR-URL: #3123 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
|
Thanks for the review :-) Landed at 5d5a4c4. @silverwind I tweaked the text a little bit. Instead of in the form of, I used in the format. Hope that is okay. |
Sorry, something went wrong.
The `tls` module's `createServer` and `createSecureContext` accept `key` option and it can be an array of keys as well. This patch explains the format of the entries in that array. Corresponding code: https://github.com/nodejs/node/blob/v4.1.1/lib/_tls_common.js#L73-L90 PR-URL: nodejs#3123 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
The `tls` module's `createServer` and `createSecureContext` accept `key` option and it can be an array of keys as well. This patch explains the format of the entries in that array. Corresponding code: https://github.com/nodejs/node/blob/v4.1.1/lib/_tls_common.js#L73-L90 PR-URL: #3123 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
The `tls` module's `createServer` and `createSecureContext` accept `key` option and it can be an array of keys as well. This patch explains the format of the entries in that array. Corresponding code: https://github.com/nodejs/node/blob/v4.1.1/lib/_tls_common.js#L73-L90 PR-URL: #3123 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
| Back | FazBrowse Home | New Git URL |
The tls module's createServer and createSecureContext accept
key option and it can be an array of keys as well. This patch
explains the format of the entries in that array.
Corresponding code:
https://github.com/nodejs/node/blob/v4.1.1/lib/_tls_common.js#L73-L90
cc @nodejs/crypto