matrix-js-sdk icon indicating copy to clipboard operation
matrix-js-sdk copied to clipboard

Self signed certificates not working

Open kegsay opened this issue 9 years ago • 3 comments

SkaveRat says: When using synapse with self signed certificates, the request dies with Error: unable to verify the first certificate This is fixed by using rejectUnauthorized: false in the request opts. Making this flag optional might be useful for "do you trust this certificate?" confirmations.

https://matrix.org/jira/browse/SYJS-33

kegsay avatar Oct 24 '16 10:10 kegsay

Devs can manually fix this by hooking into the request function, but we should have better support for self-signed certs in general (actually specifying the fingerprint and allowing it to be explicitly trusted which is the remembered).

kegsay avatar Oct 24 '16 10:10 kegsay

SkaveRat says: note: this happens when using a non-browser environment like electron, which doesn't allow adding certificates manually or accepting unknown certificates manually

kegsay avatar Oct 24 '16 10:10 kegsay

I also got this error when trying to work import the code into Mozilla chat client, see https://bugzilla.mozilla.org/show_bug.cgi?id=1199855#c12

fred-wang avatar Nov 16 '16 07:11 fred-wang