-
Notifications
You must be signed in to change notification settings - Fork 29
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
Unable to bypass reject authorization when requesting cert as part of tlsDuplex (initiator) #94
Comments
is it possible to make the proposed change, test it and raise a PR for it? |
does this work - i think soneone previously added this into the getTlsConnectionOptions if (tls.nodeTlsConnectionOptions) {
connectionOptions = {
...connectionOptions,
...tls.nodeTlsConnectionOptions
}
} so in your config something like - i have not tested this, just looking at code, "tls": {
"timeout": 10000,
"sessionTimeout": 10000,
"enableTrace": true,
"key": "data/session/certs/client/client.key",
"cert": "data/session/certs/client/client.crt",
"ca": [
"data/session/certs/ca/ca.crt"
],
"nodeTlsConnectionOptions": {
"rejectUnauthorized": "false"
}
} |
Thanks for the reply, the above code does exist already in the getTlsConnectionOptions but does not work - still gets caught in the original posts' code. I have also tried to use the As for the config I'm using for this, please see below:
|
Happy to do this, will ping PR once ready - thanks :) |
it may be worth if you continue to have issues, to write a powershell script which replicates the ssl connection - you should then be able to print out the algo suite negotiated etc, i.e. prove that you can connect to the remote peer. |
@TimelordUK
Trying to setup a fix connection as a initiator with a third party and they are returning an error on the cert I am providing (self signed).
I have tried to use the
rejectUnauthorized
flag to bypass this and still connect but the option is not considered when set in thetls connection options
- is this expected behaviour or a fix to be made?Current code:
Code that I would expect to allow for bypassing the self signed cert error
If there is any way to bypass the reject authorization then please do point me in the right direction.
Thank you
The text was updated successfully, but these errors were encountered: