Exporting the Certificate

The rfc keyword specifies base64-encoded output.

keytool -export -alias ITDI -file ITDI.b64 -keystore recipient.jks -storepass
  xxxxxx -rfc

Omitting the rfc keyword will export the certificate in binary format.