X509Certificate certificate

Returns the certificate of the HTTPS server providing the response. Returns null if the connection is not a secure TLS or SSL connection.

Source

X509Certificate get certificate;