Date sent:              Fri, 13 Apr 2001 18:31:06 +0100
From:                   Dr S N Henson <[EMAIL PROTECTED]>
Organization:           S N Henson
To:                     [EMAIL PROTECTED]
Subject:                Re: Extract Smart Card Cert to X509 struct
Send reply to:          [EMAIL PROTECTED]

Dr. Henson

Thanks again.  I took the lazy way and just modified a function I 
already had to convert the DER encoded cert data for output to a file 
and just passed the memory bio to the PEM_read_bio_X509 
function.

Ken

"Kenneth R. Robinette" wrote:
> 
> Is there any documentation available on extracting a PKCS-11
> based certificate and placing it in a OpenSSL X509 struct for
> processing by OpenSSL?
> 

No there isn't as such. However since the PKCS#11 certificate constains
the DER encoded certificate you can use d2i_X509() to decode it and
populate the X509 structure: info on using the d2i_*() functions is in
the FAQ.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]
__________________________________________________
Support
InterSoft International, Inc.
Voice: 888-823-1541, International 281-398-7060
Fax: 888-823-1542, International 281-560-9170
[EMAIL PROTECTED]
http://www.securenetterm.com
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to