stream_socket_enable_crypto
Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Turns encryption on/off on an already connected socket
<?php stream_socket_enable_crypto( resource $stream, bool $enable, ?int $crypto_method = null, ?resource $session_stream = null): int|bool