> 1) Put a base64-encoded key (the normal one generated by openssl command line 
> tools) into a header file

Avoid a step.  Base64 decode and using something like "od" put a binary 
bytestream into your source.  Like
        unsigned char der_key[] = { 3, 12, 253, .... }

> 2) Compile code with this key which will public-key encrypt a message.

Convert it into an RSA structure using d2i_XXX routines.

        /r$

--  
Principal Security Engineer
Akamai Technology
Cambridge, MA

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to