org.nhindirect.stagent.cert.tools
Class CreatePKCS12
java.lang.Object
org.nhindirect.stagent.cert.tools.CreatePKCS12
public class CreatePKCS12
- extends Object
|
Method Summary |
static File |
create(File certFile,
File keyFile,
String password,
File createFile)
Creates a PCKS12 file from the certificate and key files. |
static void |
main(String[] argv)
Main entry point when running as an application. |
CreatePKCS12
public CreatePKCS12()
main
public static void main(String[] argv)
- Main entry point when running as an application. Use the -help option for usage.
- Parameters:
argv - Application arguments.
create
public static File create(File certFile,
File keyFile,
String password,
File createFile)
- Creates a PCKS12 file from the certificate and key files.
- Parameters:
certFile - The X509 DER encoded certificate file.keyFile - The PCKS8 DER encoded private key file.password - Option password for the private key file. This is required if the private key file is encrypted. Should be null or empty
if the private key file is not encrypted.createFile - Optional file descriptor for the output file of the pkcs12 file. If this is null, the file name is based on the
certificate file name.
- Returns:
- File descriptor of the created pcks12 file. Null if an error occurred.
Copyright © 2010-2013 NHIN Direct. All Rights Reserved.