Gio.TlsInteraction.prototype.request_certificate_async

function request_certificate_async(connection: Gio.TlsConnection, flags: Gio.TlsCertificateRequestFlags, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for g_tls_interaction_request_certificate_async()
}
  

Run asynchronous interaction to ask the user for a certificate to use with the connection. In general, Gio.TlsInteraction.prototype.invoke_request_certificate should be used instead of this function.

Derived subclasses usually implement a certificate selector, although they may also choose to provide a certificate from elsewhere. callback will be called when the operation completes. Alternatively the user may abort this certificate request, which will usually abort the TLS connection.

Since 2.40

connection

a Gio.TlsConnection object

flags

flags providing more information about the request

cancellable

an optional Gio.Cancellable cancellation object

callback

will be called when the interaction completes