To get a certificate in p12 format, as far as I know, you cannot use a cert file, there are utilities for this (for example, openssl) source (from where you generated the downloaded certificate) can give you p12 format.
openssl pkcs12 -export -in mycer.crt -inkey mykey.key -out mycer.p12 -name "mycer"
URL. .
HTTPS Java
, !