public class PKCS12Example extends Object
Constructor and Description |
---|
PKCS12Example() |
Modifier and Type | Method and Description |
---|---|
static Certificate |
createCert(PublicKey pubKey,
PrivateKey caPrivKey,
PublicKey caPubKey)
we generate a certificate signed by our CA's intermediate certficate
|
static Certificate |
createIntermediateCert(PublicKey pubKey,
PrivateKey caPrivKey,
X509Certificate caCert)
we generate an intermediate certificate signed by our CA
|
static Certificate |
createMasterCert(PublicKey pubKey,
PrivateKey privKey)
we generate the CA's certificate
|
static void |
main(String[] args) |
public static Certificate createMasterCert(PublicKey pubKey, PrivateKey privKey) throws Exception
Exception
public static Certificate createIntermediateCert(PublicKey pubKey, PrivateKey caPrivKey, X509Certificate caCert) throws Exception
Exception
public static Certificate createCert(PublicKey pubKey, PrivateKey caPrivKey, PublicKey caPubKey) throws Exception
Exception
Copyright © 2015. All rights reserved.