Table of Contents

TSslOptions Class

TLS settings of the socket server: the default certificate served to clients, plus optional per-host certificates selected by SNI (Server Name Indication).

Syntax

Unit: Sparkle.Socket.Tls

TSslOptions = class(TObject);

Constructors

Name Description
Create Creates a new instance with no certificates configured.

Methods

Name Description
AddSniCertificate Adds a certificate served to clients whose SNI host name matches AHostName.

Properties

Name Description
CertificateFile Gets or sets the path of the default certificate (or full chain) file, in PEM format, served when the client sends no SNI host name or no SNI certificate matches.
KeyPassword Gets or sets the password of the private key, when it is encrypted.
PrivateKeyFile Gets or sets the path of the private key file, in PEM format. When empty, CertificateFile is used.
SniCertificates The list of additional certificates selected by SNI host name.