***

title: getServerOptions
slug: /reference/typescript/agents/configuration/ssl-config/get-server-options
description: Create the options object for Node.js https.createServer().
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Create the options object needed by Node.js `https.createServer()`.

## **Parameters**

None.

## **Returns**

`{ cert: string; key: string } | null` -- An object with `cert` and `key` strings
read from disk, or `null` if either file is missing.

## **Example**

```typescript {4}
import { SslConfig } from '@signalwire/sdk';

const ssl = new SslConfig();
const opts = ssl.getServerOptions();
if (opts) {
  const server = createServer(opts);
}
```