The certificate should be in a format compatible with Java Secure Socket Extension (JSSE).

The easiest way to create it is via the keytool application, as explained in the "SSL Certificates.pdf" document.

The possibility to convert other certificate formats into a Java compatible one should be investigated on a case-by-case basis.

Hope that helps