mormot2 tls
mormot.net.sock.pas
TNetTlsContext = record;
典型用法
with THttpClientSocket.Create do try TLS.WithPeerInfo := true; TLS.IgnoreCertificateErrors := true; TLS.CipherList := 'ECDHE-RSA-AES256-GCM-SHA384'; OpenBind('synopse.info', '443', {bind=}false, {tls=}true); writeln(TLS.PeerInfo); writeln(TLS.CipherName); writeln(Get('/forum/', 1000), ' len=', ContentLength); writeln(Get('/fossil/wiki/Synopse+OpenSource', 1000)); finally Free; end;
mormot2 默认仅用TLS 1.2+,并且始终禁用不推荐使用的SSL 2/3,不推荐使用TLS 1.0或TLS 1.1
indy10 idhttp只支持TLS 1.0或TLS 1.1,不支持TLS 1.2+
标签:tls,TLS,1.1,writeln,mormot2,true From: https://www.cnblogs.com/hnxxcxg/p/17164647.html