# tls()

Canonical URL: https://developers.iagenify.com/ar/sdk/ref/domain/tls/
Language: ar

`domain.tls() → Promise<Tls>`

The zone's TLS setting, and the certificate of every name attached to it.

Status: per name · a wait, not a fault

```javascript
await domain.tls();
// { active: true, mode: "full", certificate: "active",
//   hosts: [{ name: "app.example.com", certificate: "pending" }] }
```

## Pending means the address refuses the connection {#pending}

A fresh certificate takes from seconds to several minutes. Until it is active the handshake fails, which reads from outside exactly like an outage — so check this before telling anyone the address works.

- [attach()](/ar/sdk/ref/domain/attach): Attaching a name.
- [owner()](/ar/sdk/ref/domain/owner): The registry's view.

```python
domain.tls()
# {"active": True, "mode": "full", "certificate": "active",
#  "hosts": [{"name": "app.example.com", "certificate": "pending"}]}
```
