In ldap we can directly save our certificate instead of storing as integer values.
In ldif file:
dc: xxxx
objectClass: yyyyy
userCertificate;binary:< file:///path/to/certificate.der
like this we have to upload..:)
package to handle certificates:
java.security.cert.X509Certificate