I spent some time fiddling with these functions for simple public key encryption jobs.
I wrote the following class which may be useful to others, it encapsulates much of the example code written by contributors to this section:
http://www.karenandalex.com/php_stuff/_class_OpenSSL.phps
I hope it is useful to you.
----------------------------------
WIN 98, PHP 4.3.4, OpenSSL 0.9.7b
----------------------------------
Regards,
Alex Poole
