TsgcWebSocketClientProperties › TLSOptions

TLSOptions プロパティ

TLS が有効な場合に使用される証明書、TLS バージョン、ALPN、IOHandler、その他のセキュア接続の詳細を設定します。

構文

property TLSOptions: TsgcWSTLS_Options read FTLSOptions write SetTLSOptions;

デフォルト値

解説

TLSTrue の場合のみアクセス可能です。サブプロパティには RootCertFileCertFileKeyFilePasswordVerifyCertificateVerifyDepthVersiontlsUndefined から tls1_3)、ALPNProtocolsIOHandleriohOpenSSL または iohSChannel)が含まれます。OpenSSL 固有の設定は OpenSSL_Options に、SChannel 固有の設定は SChannel_Options にあります。

使用例


oClient := TsgcWebSocketClient.Create(nil);
oClient.URL := 'wss://www.esegece.com:2053';
oClient.TLSOptions.Version := tls1_2;
oClient.TLSOptions.VerifyCertificate := true;
oClient.TLSOptions.RootCertFile := 'cacert.pem';
oClient.Active := true;

プロパティに戻る