DOKK / manpages / debian 10 / trafficserver-dev / TSSslServerContextCreate.3ts.en
TSSSLSERVERCONTEXTCREATE(3ts) Apache Traffic Server TSSSLSERVERCONTEXTCREATE(3ts)

TSSslServerContextCreate - traffic Server TLS server context creation

#include <ts/ts.h>

TSSslContext TSSslServerContextCreate(TSSslX509 *cert, char *certname)


TSSslServerContextCreate() creates a new TLS server context. The context is configured using the TLS settings specified in records.config. The user can pass certificate object(TSSslX509 cert and certname (const char* certname) optionally. This function sets the certificate status callback and initializes ocsp stapling data if cert and certname is provided and ocsp is enabled globally. TSSslServerContextCreate() returns nullptr on failure.

TSSslContextDestroy() destroys a TLS context created by TSSslServerContextCreate(). If ctx is nullptr no operation is performed.

The SSL context object. This is an opaque type that can be cast to the underlying SSL library type (SSL_CTX * for the OpenSSL library).

TSAPI(3ts)

2022, dev@trafficserver.apache.org

May 21, 2022 8.0