Hi
My proplem is that I have a open socket in my server side code (written php) and I need to trasform this socket to use TLS, with negotiation and decription of the stream before passing it to the already existing code that work with a clear stream without encryption.
What is the simplest solution to archive this?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- Multiple sockets for clients to connect to
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
PHP supports TLS/SSL listening using a stream context. Something like this should work: