public class PKCS12ToPEM extends Object
| Constructor and Description |
|---|
PKCS12ToPEM() |
| Modifier and Type | Method and Description |
|---|---|
static void |
convert(File pkcs12,
char[] pkcs12Password,
char[] keyPassword,
File certPem,
File keyPem)
Converts a PKCS12 to a PEM using the Bouncy Castle PKCS12 drivers
|
static void |
convert(File pkcs12,
char[] pkcs12Password,
File certPem,
File keyPem) |
static void |
convert(File pkcs12,
File certPem,
File keyPem) |
public static void convert(File pkcs12, File certPem, File keyPem) throws Exception
Exceptionpublic static void convert(File pkcs12, char[] pkcs12Password, File certPem, File keyPem) throws Exception
Exceptionpublic static void convert(File pkcs12, char[] pkcs12Password, char[] keyPassword, File certPem, File keyPem) throws Exception
pkcs12 - The PKCS12 (.p12) filepkcs12Password - The password on the file (if unspecified, set to new char[] {})keyPassword - The password on the key entry (if unspecified, set to new char[] {})certPem - The certificate PEM (output file)keyPem - The key PEM (output file)Exception - If any SecurityException, etc. is thrownCopyright © 2015. All rights reserved.