TsgcUDPServerProperties › DTLSOptions

DTLSOptions Property

Certificate, verification and OpenSSL settings applied when DTLS is enabled on the server.

Syntax

property DTLSOptions: TsgcUDPDTLS_Options read FDTLSOptions write SetDTLSOptions;

Default Value

Remarks

Groups the parameters that drive the server-side DTLS handshake: RootCertFile, CertFile and KeyFile identify the root certificate, server certificate and private key; VerifyCertificate toggles client-certificate validation with VerifyCertificate_Options (FailfIfNoCertificate, VerifyClientOnce) and VerifyDepth limiting the chain length. OpenSSL_Options selects the OpenSSL API version (oslAPI_1_1 or oslAPI_3_0) and the folder where the OpenSSL libraries are loaded from. The settings take effect only when DTLS is True and are ignored for plain UDP traffic. Changes made after Active := True require ClearDTLS (and usually a ReStart) to take effect.

Example

oServer.DTLS := True;
oServer.DTLSOptions.CertFile := 'server.pem';
oServer.DTLSOptions.KeyFile := 'server.key';
oServer.DTLSOptions.RootCertFile := 'root.pem';
oServer.DTLSOptions.VerifyCertificate := True;
oServer.DTLSOptions.OpenSSL_Options.APIVersion := oslAPI_3_0;

Back to Properties