TlsConnection.peerCertificate

gio.tls_certificate.TlsCertificate peerCertificate() @property nothrow

Get peerCertificate property.

Returns

The connection's peer's certificate, after the TLS handshake has

completed or failed. Note in particular that this is not yet set during the emission of #GTlsConnection::accept-certificate.

(You can watch for a #GObject::notify signal on this property to detect when a handshake has occurred.)