Implement 'fingerprint()' function on Gio.TlsCertificate
@andyholmes
Submitted by Andy Holmes Link to original bug (#788315)
Description
In regards to a short discussion on SO1, it would be useful to have an introspectable 'fingerprint()' function (which takes a 'GChecksumType' as an argument) available on Gio.TlsCertificate objects, since this is the primary way users validate certificate exchange. If the fingerprint was known ahead of time it may even be of use in the 'accept-certificate' callback for Gio.TlsConnection.handshake().
This could be done with 'GLib.compute_checksum_for_data()' on the 'certificate' property which holds the DER format of the certificate, however this property is currently not introspectable2, at least in GJS.