TsgcWebSocketLoadBalancerServerプロパティ › SSLOptions

SSLOptions プロパティ

ロードバランサーの TLS リスナーの証明書パス、TLS バージョン選択、OpenSSL チューニングを保持します。

構文

property SSLOptions: TsgcWSSSL_Options read FSSLOptions write SetSSLOptions;

デフォルト値

Version=tlsUndefinedVerifyCertificate=False

解説

SSLTrue の場合、ロードバランサーをアクティブにする前に証明書マテリアルを提供します。RootCertFileCertFileKeyFile は PEM ファイルを指します(ファイルにフルチェーンが含まれている場合は 3 つすべてに同じパスを使用)。Password は秘密鍵が暗号化されている場合にのみ必要です。クライアント証明書をリクエストして検証するには VerifyCertificateTrue に設定します(サブオプション FailIfNoCertificateVerifyClientOnce でチェックを調整)。VerifyDepth はチェーンの長さを制御します。これは登録するバックエンドが相互 TLS のクライアント証明書を提示する必要がある場合に便利です。Version は特定の TLS バージョン(tls1_0tls1_1tls1_2tls1_3)を選択するか、ネゴシエーションをオープンのままにします(tlsUndefined)。OpenSSL_Options は低レベルのノブを公開します: APIVersionoslAPI_1_0/oslAPI_1_1/oslAPI_3_0)、LibPath/LibPathCustomUnixSymLinksECDHECipherListCurveListMinVersionX509Checks

使用例


oServer := TsgcWebSocketLoadBalancerServer.Create(nil);
oServer.SSL := true;
oServer.SSLOptions.CertFile := 'c:\certificates\mycert.pem';
oServer.SSLOptions.KeyFile := 'c:\certificates\mycert.pem';
oServer.SSLOptions.RootCertFile := 'c:\certificates\mycert.pem';
oServer.SSLOptions.Version := tls1_3;
oServer.SSLOptions.OpenSSL_Options.MinVersion := tls1_2;
oServer.SSLOptions.Port := 443;
oServer.Active := true;

プロパティに戻る