-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Possibly Trivial HTTPS Options Issue #3024
Comments
I agree. We should throw if any of the required options to |
I agree as well possibly a warning of the property not correctly spelled. |
@kulkarniankita That won't happen. Check if it is missing is fast and is a good thing to do (when the property is required), and trying to find a property with a similar name would require excess code and time, and is a no-go. |
@kulkarniankita ... +1 ... I agree with @silverwind, throwing if the required options are missing is a good idea. The only concern is that adding new throws is a semver-major but that's easily managed. |
I have reproduced the issue, working on adding a fix for 'throwing if any of the required options to {tls,https}.createServer are missing' |
👍 |
Throw an error when required parameters are missing. Handles ciphers that requires no auth. Additional tests added for the same. Fixes: nodejs#3024 PR-URL: nodejs#3064
Throw an error when required parameters are missing. Handles ciphers that requires no auth. Does not throw error If pfx option is provided. Additional tests added for the same. Fixes: nodejs#3024 PR-URL: nodejs#3064
I'm going to remove the It appears that there is a good start on this at #3064 but that PR got stalled. Pinging @kulkarniankita to see if maybe she's ready to pick it back up and finish it off, because that would be awesome. |
@Trott In the case of possible ciphers not using |
@Trott I can pick it up as I would like to finish what I started! |
This issue has been inactive for sufficiently long that it seems like perhaps it should be closed. Feel free to re-open (or leave a comment requesting that it be re-opened) if you disagree. I'm just tidying up and not acting on a super-strong opinion or anything like that. |
This is more of a suggestion than an issue. So, instead of having
{cert: ***}
, I had{crt: ***}
, and there was no indication of anything amiss; the server started listening. Chrome was giving me ERR_SSL_VERSION_OR_CIPHER_MISMATCH. I googled my ass off and tried various things. There may be a reason to allow the options to have an unsetcert
property, but if there is none, perhaps we could have some kind of indication.The text was updated successfully, but these errors were encountered: