Self signed certificates not working
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
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).
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
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