TSslOptions.AddSniCertificate Method
Adds a certificate served to clients whose SNI host name matches AHostName.
Syntax
Unit: Sparkle.Socket.Tls
function TSslOptions.AddSniCertificate(const AHostName: string; const ACertificateFile: string; const APrivateKeyFile: string; const AKeyPassword: string): TSslCertificate;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | AHostName | string | Host name, or wildcard pattern starting with "*.", matched against the SNI host name sent by the client. |
| const | ACertificateFile | string | Path of the certificate (or full chain) file, in PEM format. |
| const | APrivateKeyFile | string | Path of the private key file, in PEM format. |
| const | AKeyPassword | string | Password of the private key, when it is encrypted. |
Returns
The TSslCertificate instance added to SniCertificates.