Message.setTlsClientCertificate

void setTlsClientCertificate(gio.tls_certificate.TlsCertificate certificate = null)

Sets the certificate to be used by msg's connection when a client certificate is requested during the TLS handshake.

You can call this as a response to soup.message.Message.requestCertificate signal, or before the connection is started. If certificate is null the handshake will continue without providing a GTlsCertificate. Note that the gio.tls_certificate.TlsCertificate set by this function will be ignored if soup.session.Session.tlsInteraction is not null.

Parameters

certificatethe #GTlsCertificate to set, or null