I am trying to utilize external LDAP for user authentication. While testing the external ldap, I get ssl key error.

This is what I have done to import my ldap server's cert and here is the error. what i may have missed?

# su - zimbra

# keytool -import -keystore /opt/zimbra/java/jre/lib/security/cacerts -storepass changeit -alias ldapauth -file myCA2.pem

keytool error: java.lang.Exception: Input not an X.509 certificate


My key is in x.509.