fails to trust self-signed cert on first try
- OS version: ubuntu 22.04
- gajim version: gajim-default-nightly 20221014-1
- GTK Version: 3.24.33
- GLib Version: 2.71.3
- Pango Version: 1.50.6
- PyGObject Version: 3.42.1
- cairo Version: 1.16.0
- pycairo Version: 1.20.1
- python-nbxmpp Version: 3.2.4
Steps to reproduce
apt install prosody prosody-modules
prosodyctl adduser user1@localhost
prosodyctl cert generate localhost
cp /var/lib/prosody/localhost.* /etc/prosody/certs
chmod 640 /etc/prosody/certs/localhost.*
chown root:prosody /etc/prosody/certs/localhost.*
systemctl restart prosody
- in gajim: accounts > add account
- enter login details for "user1@localhost" and click login
- warning appears "Certificate Verification Failed"
- DO NOT click check box "Add to Trusted Certificates"
- click "Log In" button
- window shows "Account has been added successfully"
- in this window, set account name and click on "connect"
- window pops up "SSL Certificate Verification Error", "identified error: the signing certificate authority is not known"
- click check box "add this certificate to the list of trusted certificates"
- second time window pops up "SSL Certificate Verification Error", "identified error: the signing certificate authority is not known"
- again, click check box "add this certificate to the list of trusted certificates"
- process complete
Expected behavior
I expect to only choose to accept the SSL certificate once.
Actual behavior
After choosing to accept the certificate the first time, gajim saves the cert in ~/.local/share/gajim/cert_store
. After choosing to accept the second time it also saves a new file in the same directory.