1

I am trying to understand whether .pfx file may contain multiple private keys or not.

In case there are several sets of certificates and their private keys how they can be found in KeyStore? By using aliases, right?

halfer
  • 19,824
  • 17
  • 99
  • 186
nixspirit
  • 509
  • 1
  • 7
  • 19
  • 1
    What KeyStore ? PKCS#12 file can, indeed, contains several private keys. – Stephane Apr 16 '15 at 13:08
  • 2
    I second what Stephane said. What KeyStore? PFX files may contain all sorts of things. Think of it as a ZIP file to for crypto-related-stuff. – StackzOfZtuff Apr 16 '15 at 13:21
  • by KeyStore I meant Java's KeyStore or BC's Pkcs12Store classes. – nixspirit Apr 16 '15 at 13:26
  • 1
    You can lookup how to convert the pfx to pem, which is human readable, then you can verify for yourself. In general, the PKCS#12 format support multiple keys. – Eric G Apr 16 '15 at 19:31

1 Answers1

-3

So the answer is yes it can have any number of private keys and associated certificates. Thank you guys.

nixspirit
  • 509
  • 1
  • 7
  • 19
  • Please use the edit link on your question to add additional information. The Post Answer button should be used only for complete answers to the question. – Simon Apr 17 '15 at 01:00
  • Ok, but I was going to accept this answer as a correct one. I will be able to do it tomorrow – nixspirit Apr 17 '15 at 03:59
  • Can you please send us procedure to add multiple private keys in one .p12 file – usman mehmood Jul 14 '20 at 16:21