TlsOptions
[<Interface>]
type TlsOptions =
abstract member handshakeTimeout: float option with get, set
abstract member pskCallback: PskCallback option with get, set
abstract member pskIdentityHint: string option with get, set| Assembly | Xantham.Fable.Node |
| Implements | ServerOpts, CommonConnectionOptions, SecureContextOptions |
Declared inside
PskCallback |
Properties
abstract member handshakeTimeout: float option with get, set
abstract member handshakeTimeout: float option with get, setAbort the connection if the SSL/TLS handshake does not finish in the specified number of milliseconds. A 'tlsClientError' is emitted on the tls.Server object whenever a handshake times out. Default: 120000 (120 seconds).
abstract member pskCallback: PskCallback option with get, set
abstract member pskCallback: PskCallback option with get, set| Parameter | |
|---|---|
identity | identity parameter sent from the client. |
Returns. pre-shared key that must either be a buffer or null to stop the negotiation process. Returned PSK must be compatible with the selected cipher's digest.
When negotiating TLS-PSK (pre-shared keys), this function is called with the identity provided by the client. If the return value is null the negotiation process will stop and an "unknown_psk_identity" alert message will be sent to the other party. If the server wishes to hide the fact that the PSK identity was not known, the callback must provide some random data as psk to make the connection fail with "decrypt_error" before negotiation is finished. PSK ciphers are disabled by default, and using TLS-PSK thus requires explicitly specifying a cipher suite with the ciphers option. More information can be found in the RFC 4279.