Chris thanks for the reply.
 
 
>On 1/12/05 1:06, Rion, Bob <Bob_Rion[at]csgsystems.com> wrote:
> 
>> Hello
>> 
>>  
>> 
>>  
>> 
>> I am trying to extract a userCertificate;binary object from an ldif
file
>> using Net::LDAP::LDIF and even in this trivial example the
[at]entries is
>> not populated, the other objects and attributes are?
>> 
>>  
>> 
>> use Net::LDAP::LDIF;
>> 
>> $ldif = Net::LDAP::LDIF->new( "test.ldif", "r", onerror => 'undef' );
>> 
>>  @entries = $ldif->read(  ); 
> 
> 
>Does:
> 
>    (@entries) = $ldif->read();
> 
> 
>Change things? If you're running with -w and 'use strict;' in effect,
does
>that show any problems up?
> 
> 
Same thing, I examined the $ldif object and the @entries array and all
the entries and attributes are there from the ldif file but the
userCertificate;binary entry
> 
>>  
>> 
>> The goal is to read the ldif file, extract the certificate
information
>> from the ldif file and store back into a DER format file. 
> 
> 
>Is the LDIF file encoding the certificate properly? It should look
something
>like:
> 
>userCertificate;binary:: <base-64 encoded DER certificate>
> 
> (The certificate could obviously be split across multiple lines...)
Yes, I manually unfolded and un-encoded the entry and it is a valid
certificate in DER format.
> 
>Cheers,
> 
>Chris

> 

 

Bob

Reply via email to