Table of Contents

TTMSMCPSseTransport.ConfigureSSL Method

Turns on encryption and records the certificate to serve it with.

API unit family: TMS.MCP.Transport.SSE Declaring type: TTMSMCPSseTransport

Syntax

procedure ConfigureSSL(const ACertFile: string; const AKeyFile: string = ''; const AKeyPassword: string = '');

Remarks

A convenience for setting TTMSMCPSseTransport.UseSSL and the three certificate properties in one call. It only records the settings; they take effect the next time the channel starts.

Parameters

Name Description
ACertFile Certificate to use. The meaning depends on the platform - see TTMSMCPSseTransport.CertFile.
AKeyFile Private key file. Used only where the certificate is a file on disk.
AKeyPassword Password protecting the private key, when it has one.

Exceptions

Exception Description
Exception Raised when the channel is already running, because the listener is configured as it opens.