On Tue, Nov 20, 2001 at 01:25:36PM +0100, Alexander Kuit wrote:
> I want to store a CA root cert in source code. I know 'openssl' has an option -C 
>which outputs 3 char arrays. How do I turn this data into an X509 struct? Or is there 
>another way to store certs in the source?

Use the XXX_certificate[] array and include it into your source. When the
applications starts, hand the array to the d2i_X509() function.
The result will be an X509 object that can directly be used.

Best regards,
        Lutz
-- 
Lutz Jaenicke                             [EMAIL PROTECTED]
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to