实现代码
/**
* getPvkformPfx: 从PFX文件中获取私钥
* @param strPfx 文件存储目录
* @param strPassword PFX密码
*/
private static PrivateKey getPvkformPfx(String strPfx, String strPassword){
try {
FileInputStream fis = new FileInputStream(strPfx);
//密码处理
char[] nPassword = null;
if ((strPassword == null) || strPassword.trim().equals("")){
nPassword = null;