You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please support self signed certificates for the Redmine instance.
For my Redmine the certificate is actually signed by a trusted CA (which is in my Keychain) but your extension doesn't pick up the trust.
System: OSX 10.13.3
VSCode: 1.21.1
Invoked by: Redmine: List open issues assigned to me
The text was updated successfully, but these errors were encountered:
Hi,
unfortunately there is no easy fix to this, due to constant list of CA certificates in Node.js (see nodejs/node#4175). I've added parameter called redmine.rejectUnauthorized, which sets rejectUnauthorized in https request options. Set it to false when you want to use self-signed certificates. It isn't the best solution, but it works. I'll add this in the next minor version of this extension with some other features.
NodeJS doesn't have a constant list of certificates for a long time. It allows overrides both at command line and programmatically . node --help | grep CA
There is actually an environmental option,
NODE_TLS_REJECT_UNAUTHORIZED
When set to 0, TLS certificate validation is disabled.
Indeed, I've missed information about https.request() options, which supports using ca, cert etc. (ref: https.request()).
I can't use environment variables, because I have no power to control startup of node script (VSCode manages it).
I'm reopening this issue to provide CA path parameter, however I can't provide support for CA added in system keychain (if there is a way, please correct me or provide PR ;) ).
NodeJS uses OpenSSL so it depends how node was compiled and what OS it's running on. On Linux if using system CA's, it would pick up that CA. On Windows, probably not. It's system dependent.
Keep in mind that the ca option replaces all certs
Please support self signed certificates for the Redmine instance.
For my Redmine the certificate is actually signed by a trusted CA (which is in my Keychain) but your extension doesn't pick up the trust.
System: OSX 10.13.3
VSCode: 1.21.1
Invoked by:
Redmine: List open issues assigned to me
The text was updated successfully, but these errors were encountered: