title: Convert X509certificate to PKCS12
body: <p>I am new to java security field. I went through all possible thread to find my answer but to no use.
  I have X509Certificate and i need to convert this certificate into PKCS12 format. How do i achieve this using java api. any code snippet would be helpful. </p>