List of usage examples for org.bouncycastle.pkcs PKCS12PfxPdu toASN1Structure
public Pfx toASN1Structure()
From source file:com.aqnote.shared.encrypt.cert.main.bc.AQClass1CaCreator.java
License:Open Source License
public static void main(String[] args) throws Exception { createNewChain();//from w ww . j av a 2 s.c o m PKCS12PfxPdu pfx = PKCSReader.readPKCS12(new FileInputStream(MAD_CLASS1_CA + P12_SUFFIX), USER_CERT_PASSWD); System.out.println(pfx.toASN1Structure()); readByKeyStore(MAD_CLASS1_CA + P12_SUFFIX); }