title: Import p7b file to Java Keystore using keytool
body: <p>I'm trying to import a p7b file from a third party in to a java trust store. It looks like the p7b contains a root cert and a public key.</p>
  
  <p>I'm trying to import it using a command similar to</p>
  
  <pre><code>keytool -importcert -file certs.p7b -keystore dave.jks -storetype JCEKS -trustcacerts
  </code></pre>
  
  <p>When the file was presented to me by the third party, they did not tell me what the alias of the public key is. </p>
  
  <p>Am I right in thinking that I can't import it without knowing this information?</p>