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
Exceptionpublic static Certificate createIntermediateCert(PublicKey pubKey, PrivateKey caPrivKey, X509Certificate caCert) throws Exception
Exceptionpublic static Certificate createCert(PublicKey pubKey, PrivateKey caPrivKey, PublicKey caPubKey) throws Exception
ExceptionCopyright © 2015. All rights reserved.