SSL stream peer.
SSL stream peer. This object can be used to connect to an SSL server or accept a single SSL client connection.
[b]Note:[/b] When exporting to Android, make sure to enable the [code]INTERNET[/code] permission in the Android export preset before exporting the project or using one-click deploy. Otherwise, network communication of any kind will be blocked by Android.
$DOCS_URL/tutorials/networking/ssl_certificates.html
Accepts a peer connection as a server using the given [param private_key] and providing the given [param certificate] to the client. You can pass the optional [param chain] parameter to provide additional CA chain information along with the certificate.
Connects to a peer using an underlying [StreamPeer] [param stream]. If [param validate_certs] is [code]true[/code], [StreamPeerTLS] will validate that the certificate presented by the peer matches the [param for_hostname].
[b]Note:[/b] Specifying a custom [param valid_certificate] is not supported in Web exports due to browsers restrictions.
Disconnects from host.
Returns the status of the connection. See [enum Status] for values.
Returns the underlying [StreamPeer] connection, used in [method accept_stream] or [method connect_to_stream].
Poll the connection to check for incoming bytes. Call this right before [method StreamPeer.get_available_bytes] for it to work properly.
A status representing a [StreamPeerTLS] that is disconnected.
A status representing a [StreamPeerTLS] during handshaking.
A status representing a [StreamPeerTLS] that is connected to a host.
A status representing a [StreamPeerTLS] in error state.
An error status that shows a mismatch in the SSL certificate domain presented by the host and the domain requested for validation.