public virtual TlsCertificate? lookup_certificate_for_handle (string handle, TlsInteraction? interaction, TlsDatabaseLookupFlags flags, Cancellable? cancellable = null) throws Error
Look up a certificate by its handle.
The handle should have been created by calling create_certificate_handle on a TlsDatabase object of the same TLS backend. The handle is designed to remain valid across instantiations of the database.
If the handle is no longer valid, or does not point to a certificate in this database, then null will be returned.
This function can block, use lookup_certificate_for_handle_async to perform the lookup operation asynchronously.
a certificate handle
used to interact with the user if necessary
Flags which affect the lookup.
a Cancellable, or null
a newly allocated TlsCertificate, or null . Use unref to release the certificate.