---
name: "Twiggy::TLS::Info"
section: "3pm"
platform: "linux"
package: "libtwiggy-tls-perl"
version: "0.0020-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Twiggy::TLS::Info"
---

# Twiggy::TLS::Info(3pm)

TLS connection information

## NAME

Twiggy::TLS::Info - TLS connection information

## SYNOPSIS

In PSGI application:

```
    warn "Client's CommonName: " . $env->{"psgi.tls"}->client_certificate('cn');
    warn "Used cipher: " . $env->{"psgi.tls"}->cipher;
```

## METHODS

### client\_certificate

Retrieve value from client certificate. If no field is given the internal representation of certificate from Net::SSLeay is returned. The list of fields can be found in IO::Socket::SSL `"peer_certificate"` method documentation.

### cipher

Returns the string form of the cipher used for current connection.
