TsgcUDPCLient › Properties › DTLSOptions
Certificate, verification and OpenSSL settings applied when DTLS is enabled.
property DTLSOptions: TsgcUDPDTLSClient_Options read FDTLSOptions write SetDTLSOptions;
—
Groups the parameters that drive the DTLS handshake: RootCertFile, CertFile and KeyFile point to the root certificate, client certificate and private key; VerifyCertificate toggles server certificate validation and VerifyDepth limits the length of the certificate chain. OpenSSL_Options selects the OpenSSL API version (oslAPI_1_1 or oslAPI_3_0) and the folder where the OpenSSL libraries are loaded from. These settings take effect only when DTLS is True and are ignored for plain UDP traffic.
oClient.DTLS := True;
oClient.DTLSOptions.CertFile := 'client.pem';
oClient.DTLSOptions.KeyFile := 'client.key';
oClient.DTLSOptions.VerifyCertificate := True;
oClient.DTLSOptions.OpenSSL_Options.APIVersion := oslAPI_3_0;