Table of Contents

TTMSMCPStreamableHTTPTransport.ConfigureSSL Method

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

API unit family: TMS.MCP.Transport.StreamableHTTP Declaring type: TTMSMCPStreamableHTTPTransport

Syntax

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

Remarks

A convenience for setting TTMSMCPStreamableHTTPTransport.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 TTMSMCPStreamableHTTPTransport.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.