I have a pb7 certificate for an external website which my application tries to connect.
The pb7 certificates contains 4 certificates with their path.
I tried to add the certificate using following command but it exception-
'not an X.509 format'.

keytool -import -alias testCert -keystore C:\test\test.jks -trustcacerts -file C:\ICES\ICESMainCert\testCertificate.p7b -storepass changeit.

is there some problem with the syntax or java keytool does not accepts pb7 format files.
I am using windows server 2008 and Java 1.6.0_27

Also the keystore test.jks does not exists.Will this command create a keystore.Or first i have to create a keystore first.

Please help