.\" Man page generated from reStructuredText. . .TH "TSSSLSERVERCONTEXTCREATE" "3ts" "Dec 06, 2020" "8.0" "Apache Traffic Server" .SH NAME TSSslServerContextCreate \- traffic Server TLS server context creation . .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 .. .SH SYNOPSIS .sp \fI#include \fP .INDENT 0.0 .TP .B \fI\%TSSslContext\fP TSSslServerContextCreate(TSSslX509\fI\ *cert\fP, char\fI\ *certname\fP) .UNINDENT .INDENT 0.0 .TP .B void TSSslContextDestroy(\fI\%TSSslContext\fP\fI\ ctx\fP) .UNINDENT .SH DESCRIPTION .sp \fI\%TSSslServerContextCreate()\fP creates a new TLS server context. The context is configured using the TLS settings specified in \fBrecords.config\fP\&. The user can pass certificate object(\fBTSSslX509\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 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 2020, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .