• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how do i use a PKCS12 file

 
Ranch Hand
Posts: 430
Android VI Editor Debian
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been sent a PKCS12 files but im not sure how to use it. Could someone please briefly explain to me what is and how i can use it.

I did some reading on public and private keys and was expecting two keys and a certificate to be sent to me but instead i recieved two files. A file of type P12 and a txt file with just a random number.

Does this file contain the public and private key + the certificat? To use it, do i need to import it into a keystore or is it itself a keystore?

Thanks
 
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Does this file contain the public and private key + the certificat?


Yes


To use it, do i need to import it into a keystore or is it itself a keystore?


PKCS12 itself is a keystore.
 
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To read the pkcs12 file in Java, you need to specify the keystore type as "pkcs12". Here is the keytool command to print the certificate details.

 
reply
    Bookmark Topic Watch Topic
  • New Topic