TsgcWebSocketLoadBalancerServer속성 › SSL

SSL Property

로드 밸런서에서 TLS/SSL을 활성화하여 클라이언트가 wss:// 또는 https://를 사용하여 연결할 수 있게 합니다.

구문

property SSL: Boolean read FSSL write FSSL default False;

기본값

False

설명

로드 밸런서가 공개 리스너에서 TLS를 종료하여 다운스트림 클라이언트가 wss:// 또는 https://로 연결할 수 있도록 하려면 SSLTrue로 설정하십시오. SSLOptions에서 인증서 자료(CertFile, KeyFile, RootCertFile, Password)를 구성하고 SSLOptions.Port를 TLS 포트로 설정하십시오. 동일한 로드 밸런서는 여러 Bindings를 추가하여 일반 엔드포인트와 암호화된 엔드포인트를 동시에 서비스할 수 있습니다. TLS 핸들러는 보안 포트에만 연결됩니다. 백엔드의 LoadBalancer.Host가 암호화된 엔드포인트를 사용할 때 백엔드 등록도 TLS를 통해 도착할 수 있습니다. 인증서는 PEM 형식으로 제공되어야 합니다.

예제


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.Port := 443;
oServer.Port := 443;
oServer.Active := true;

속성으로 돌아가기