Since the OP is looking to embed a certificate (which contains a
public key), and the certificate is already in X.509 format, using
'openssl x509 -C' would resolve the problem nicely.

-Kyle H

On Wed, Sep 17, 2008 at 3:31 AM, Goetz Babin-Ebell <[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> biswatosh chakraborty wrote:
> | I dont think so. The actual content is wrapped within the headers and
> | footers and
> | how can your buffer contain them as well? U have to extract the main
> | content out.
>
> Why do you think that can't be done ?
> everything that you can read from a file you also can read from memory
> (using something like BIO_new_mem_buf())
>
> But reading key / cert from memory is simpler by storing it in binary
> and read the data with the d2i_* functions...
>
> It is even possible to use "openssl x509 -C ... " to generate
> C structure data that you can use directly in your programs...
>
> Unfortunately such parameter seems not to be available with the rsa,...
> sub commands...
>
> Goetz
>
> - --
> DMCA: The greed of the few outweighs the freedom of the many
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.4-svn0 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFI0Nxs2iGqZUF3qPYRAkGVAJ9x09DmJZUB0XdfTRodAYFILDtlagCfW5LQ
> ikiamD6CzVtNuT8fKjqPyBU=
> =rHC9
> -----END PGP SIGNATURE-----
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to