SSL stream peer. SSL stream peer. This object can be used to connect to an SSL server or accept a single SSL client connection. https://docs.godotengine.org/en/3.4/tutorials/networking/ssl_certificates.html Accepts a peer connection as a server using the given [code]private_key[/code] and providing the given [code]certificate[/code] to the client. You can pass the optional [code]chain[/code] parameter to provide additional CA chain information along with the certificate. Connects to a peer using an underlying [StreamPeer] [code]stream[/code]. If [code]validate_certs[/code] is [code]true[/code], [StreamPeerSSL] will validate that the certificate presented by the peer matches the [code]for_hostname[/code]. [b]Note:[/b] Specifying a custom [code]valid_certificate[/code] is not supported in HTML5 exports due to browsers restrictions. Disconnects from host. Returns the status of the connection. See [enum Status] for values. 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 [StreamPeerSSL] that is disconnected. A status representing a [StreamPeerSSL] during handshaking. A status representing a [StreamPeerSSL] that is connected to a host. A status representing a [StreamPeerSSL] 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.