Accepting self signed certificate
Self-signed certs are pretty common in Matrix. Please make an option to accept self-signed certs.
When a non-valid cert is detected, ask the user whether to accept it or not.
design window for accepting a non-valid cert
create window for accepting a non-valid cert