For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReference
GuidesReference
    • Core
      • Overview
    • Agents
      • Overview
      • AgentBase
      • AgentServer
      • BedrockAgent
      • CLI Tools
      • Configuration
        • AuthHandler
        • ConfigLoader
        • Environment Variables
        • SecurityConfig
          • get_basic_auth
          • get_cors_config
          • get_security_headers
          • get_ssl_context_kwargs
          • get_url_scheme
          • load_from_env
          • log_config
          • should_allow_host
          • validate_ssl_config
      • ContextBuilder
      • DataMap
      • FunctionResult
      • Helper Functions
      • LiveWire
      • MCP Gateway
      • PomBuilder
      • Prefabs
      • Search
      • SkillBase
      • Skills
      • SWAIGFunction
      • SWMLBuilder
      • SWMLService
      • WebService
    • RELAY
      • Overview
      • Actions
      • Call
      • Constants
      • Events
      • Message
      • RelayClient
      • RelayError
    • REST Client
      • Overview
      • Addresses
      • Calling
      • Chat
      • Compat
      • Datasphere
      • Fabric
      • Imported Numbers
      • Logs
      • Lookup
      • MFA
      • Number Groups
      • Phone Numbers
      • Project
      • PubSub
      • Queues
      • Recordings
      • Registry
      • RestClient
      • Short Codes
      • SignalWireRestError
      • SIP Profile
      • Verified Callers
      • Video
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Returns
  • Example
AgentsConfigurationSecurityConfig

get_ssl_context_kwargs

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

get_url_scheme

Next
Built with

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

1import uvicorn
2from fastapi import FastAPI
3from signalwire.core.security_config import SecurityConfig
4
5security = SecurityConfig()
6ssl_kwargs = security.get_ssl_context_kwargs()
7
8app = FastAPI()
9uvicorn.run(app, host="0.0.0.0", port=443, **ssl_kwargs)