I am not questioning the functionality provided. My concern is that SSL is an 'on the wire' protocol whereas - as in PHP - if all the processing happens on the server side, then it is not possible to secure data at the client end. Conversely, if the server sends secure data to the client, then the client doesn't have any way (within PHP) of decrypting the data.
Consider this scenario: Server creates a public/private key pair and expects to recieve data from the client encrypted by the public key. For this the server broadcasts the public key to the client(s). How will the client encrypt the data when no PHP processing happens on the client side?
Scenario #2: Server sends encrypted data to client. The data is encrypted by the client's public key. How will the decryption happen on the client side when no PHP executes on the client side?
Hope I have made myself clear.
Zawar