***

title: get_ssl_context_kwargs
slug: /reference/python/agents/configuration/security-config/get-ssl-context-kwargs
description: Get SSL parameters suitable for passing to uvicorn.
max-toc-depth: 3
---------------------

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

Get SSL parameters suitable for passing to uvicorn's `ssl_certfile` and
`ssl_keyfile` arguments.

## **Returns**

`dict[str, Any]` -- A dictionary with `ssl_certfile` and `ssl_keyfile` keys when
SSL is enabled and valid. Returns an empty dict when SSL is disabled.

## **Example**

```python {6}
import uvicorn
from fastapi import FastAPI
from signalwire.core.security_config import SecurityConfig

security = SecurityConfig()
ssl_kwargs = security.get_ssl_context_kwargs()

app = FastAPI()
uvicorn.run(app, host="0.0.0.0", port=443, **ssl_kwargs)
```