Tangram icon indicating copy to clipboard operation
Tangram copied to clipboard

Self Signed Certificates?

Open aaylnx opened this issue 4 years ago • 4 comments

I'm trying to use Tangram with an instance of Nextcloud which I have set up on my own lan, but it will not allow me accept a self-signed certificate. Is there a way for me to accept a self-signed certificate that I'm missing? If not, might that be a possibility in the future?

Thanks.

aaylnx avatar Oct 15 '20 22:10 aaylnx

I'm not going to add certificate management to Tangram - however it should respect your preferences.

You can try trusting the certificate through seahorse or https://help.gnome.org/users/epiphany/stable/cert.html.en

If it doesn't work and you're using the Flatpak, this might be related: https://github.com/flatpak/flatpak/issues/2721

Let me know how it goes - if you'd like to debug/fix this I'm happy to provide some guidance.

sonnyp avatar Oct 17 '20 12:10 sonnyp

@sonnyp which crypto stack does Tangram use? Host certs work best with GnuTLS (that's where the support was originally done) and may work with NSS. It does not work at all with OpenSSL at the moment.

nanonyme avatar Jan 01 '21 21:01 nanonyme

According to https://blogs.gnome.org/mcatanzaro/2018/11/11/the-gnome-and-webkitgtk-networking-stack/ that would be GnuTLS

if you’re using desktop Linux and point WebKitGTK+ at an HTTPS address, then GLib is going to load a GIO extension point called glib-networking, which implements all of GIO’s TLS APIs — notably GTlsConnection and GTlsCertificate — using GnuTLS

sonnyp avatar Jan 14 '21 10:01 sonnyp

Well, that should definitely work with host certificates assuming crypto stack itself likes the setup. Many crypto stack assume you have internal CA with which server cert is signed rather than server cert being self-signed.

nanonyme avatar Jan 14 '21 15:01 nanonyme