Server SDKs
Build AI agents, control calls, send messages, and more
Read the PEM private key file from disk.
None.
string | null — The key file contents, or null if the file path is not set or the file does not exist.
string | null
null
1import { SslConfig } from '@signalwire/sdk';23const ssl = new SslConfig({ certPath: './cert.pem', keyPath: './key.pem' });4const key = ssl.getKey();5console.log(key ? 'Key loaded' : 'Key not found');