.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "TSSSLSERVERCONTEXTCREATE" "3ts" "Jan 06, 2024" "9.2" "Apache Traffic Server" .SH NAME TSSslServerContextCreate \- traffic Server TLS server context creation .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX #include .EE .UNINDENT .UNINDENT .INDENT 0.0 .TP .B \fI\%TSSslContext\fP TSSslServerContextCreate(\fI\%TSSslX509\fP *cert, char *certname) .UNINDENT .INDENT 0.0 .TP .B void TSSslContextDestroy(\fI\%TSSslContext\fP ctx) .UNINDENT .SH DESCRIPTION .sp \fI\%TSSslServerContextCreate()\fP creates a new TLS server context. The context is configured using the TLS settings specified in \fI\%records.config\fP\&. The user can pass certificate object(\fI\%TSSslX509\fP \fIcert\fP and certname (\fBconst char*\fP \fIcertname\fP) optionally. This function sets the certificate status callback and initializes OCSP stapling data if \fIcert\fP and \fIcertname\fP is provided and ocsp is enabled globally. \fI\%TSSslServerContextCreate()\fP returns \fBnullptr\fP on failure. .sp \fI\%TSSslContextDestroy()\fP destroys a TLS context created by \fI\%TSSslServerContextCreate()\fP\&. If \fIctx\fP is \fBnullptr\fP no operation is performed. .SH TYPE .INDENT 0.0 .TP .B type TSSslContext The SSL context object. This is an opaque type that can be cast to the underlying SSL library type (\fBSSL_CTX *\fP for the OpenSSL library). .UNINDENT .SH SEE ALSO .sp \fBTSAPI(3ts)\fP .SH COPYRIGHT 2024, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .