Gio.TlsConnection.get_peer_certificate

### Method

# Gio TlsConnectionget_peer_certificate

since: 2.28

#### Declaration

    GTlsCertificate*
    g_tls_connection_get_peer_certificate (
      GTlsConnection* conn
    )

#### Description

Gets `conn`‘s peer’s certificate after the handshake has completed or failed. (It is not set during the emission of `GTlsConnection::accept-certificate`.)

Available since: 2.28

Gets property | `Gio.TlsConnection:peer-certificate`

#### Return value

Type: `GTlsCertificate`

`conn`‘s peer’s certificate, or `NULL`.

The data is owned by the instance.
The return value can be `NULL`.