TsgcWebSocketClientProperties › TLSOptions

TLSOptions Eigenschap

Configureert certificaten, TLS-versie, ALPN, IOHandler en andere details voor beveiligde verbindingen die worden gebruikt wanneer TLS is ingeschakeld.

Syntaxis

property TLSOptions: TsgcWSTLS_Options read FTLSOptions write SetTLSOptions;

Standaardwaarde

Opmerkingen

Alleen toegankelijk wanneer TLS True is. Sub-eigenschappen omvatten RootCertFile, CertFile, KeyFile, Password, VerifyCertificate, VerifyDepth, Version (van tlsUndefined tot en met tls1_3), ALPNProtocols en IOHandler (iohOpenSSL of iohSChannel). OpenSSL-specifieke instellingen staan onder OpenSSL_Options en SChannel-specifieke instellingen onder SChannel_Options.

Voorbeeld


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;

Terug naar eigenschappen