Afer generating your private key, try openssl rsa -in /php_data_priv.key -pubout -out /php_data_pub.key
The file "php_data_pub.key" will contain the public part of the key only. Cheers, Steve > Hi, > > I want to make use of public key encryption > in my program, but I do not know how to generate > the public key that will be used to encrypt the data. > Can you tell me how to do that. > > I use the following to generate the private key: > > openssl genrsa -rand /var/log/messages -out /php_data_priv.key 4096 > > Please tell me how to get the public key so I can encrypt my > private data. > > Best regards, > > Emanuel Dejanu ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]