# JobQueueOptions.tls property · @imqueue/job

Source: https://imqueue.org/api/job/latest/job.jobqueueoptions.tls/
Published: 2026-08-31
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/job 3.3.0 — generated reference, not hand-written

Encrypts the broker connection with TLS. `true` connects with Node's defaults, verifying the broker against the system trust store; an object is handed to `tls.connect()` as given, so supply `ca` for a private certificate authority and `cert` with `key` for mutual TLS.

**Signature:**

```typescript
tls?: IMQOptions['tls'];
```

## Default Value

undefined

## Remarks

The broker must be listening for TLS. One that is not will refuse the handshake rather than fall back to plaintext, so a queue never quietly downgrades.

Leave it unset and `@imqueue/core` consults the environment instead — `IMQ_REDIS_TLS` and its companions — which lets a deployment encrypt every job queue it runs without a code change. Pass `false` to decline that fallback.

