[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: userCertificate



This shell-script may help you (I cannot remember where I got it from). The `ldif'
program is part of Umich (it disappeared from OpenLDAP)

#!/bin/sh

file=$1
[ $# -ne 1 ] && { echo "Usage: $0 user@email.dom" >&2; exit 2; }

pemfile=$file.crt       # The PEM file

openssl x509 -outform DER -in $pemfile |
        ldif -b 'usercertificate;binary' > $file.ldif

The resulting LDIF can be passed to `ldapmodify'

	-JP


On Thu, 16 May 2002, De Leeuw Guy wrote:

> Hello,
>
> openldap 2.0.23, I cannot to add a userCertificate
> into a inetorgperson derived class.
> The certificate is a der format.
> Anybody can help me ?
>
> Thanks
>
> Guy
>
>