TsgcWebSocketClientProperties › TLSOptions

TLSOptions 속성

TLS가 활성화될 때 사용되는 인증서, TLS 버전, ALPN, IOHandler 및 기타 보안 연결 세부 정보를 구성합니다.

구문

property TLSOptions: TsgcWSTLS_Options read FTLSOptions write SetTLSOptions;

기본값

설명

TLSTrue일 때만 액세스할 수 있습니다. 하위 속성에는 RootCertFile, CertFile, KeyFile, Password, VerifyCertificate, VerifyDepth, Version(tlsUndefined부터 tls1_3까지), ALPNProtocolsIOHandler(iohOpenSSL 또는 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;

속성으로 돌아가기