In message <[EMAIL PROTECTED]> on Thu, 28 Nov
2002 13:43:34 +0000 (GMT), Touria Zaddaoui <[EMAIL PROTECTED]> said:
971BJ235187> i have a question about openssl and LDAP, is there any
971BJ235187> option with openssl that can be used to publish an
971BJ235187> openssl generated certificate to an LDAP directory. i'll
971BJ235187> be very greatful if i get an answer.
Not directly. Something like this should do what you want, however,
assuming your certificate is in foo.pem:
USERCERTIFICATE=`openssl x509 -in foo.pem -outform d | openssl -A base64`
ldapadd ... << EOF
dn: ...
objectclass: ...
...
usercertificate;binary:: $USERCERTIFICATE
EOF
At all places where there is a '...', you need to replace it with
appropiate stuff.
--
Richard Levitte \ Spannv�gen 38, II \ [EMAIL PROTECTED]
Redakteur@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47
\ SWEDEN \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]