Since Java verion 6, you can import/export private keys into PKCS#12 (.p12) files using keytool, using -importkeystore (not available in previous versions). [crayon-67907d3b4b3cf283873412/] The PKCS12 keystore type is