Example usage for org.bouncycastle.pkcs PKCS12PfxPdu toASN1Structure

List of usage examples for org.bouncycastle.pkcs PKCS12PfxPdu toASN1Structure

Introduction

In this page you can find the example usage for org.bouncycastle.pkcs PKCS12PfxPdu toASN1Structure.

Prototype

public Pfx toASN1Structure() 

Source Link

Document

Return the underlying ASN.1 object.

Usage

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);
}