code: private static KeyStore getKeyInfo(String pfxkeyfile, String keypwd,
  			String type) throws IOException {
  		LogUtil.writeLog("加载签名证书==>" + pfxkeyfile);
  		FileInputStream fis = null;
  		try {
  			KeyStore ks = KeyStore.getInstance(type, "BC");
  			LogUtil.writeLog("Load RSA CertPath=[" + pfxkeyfile + "],Pwd=["+ keypwd + "],type=["+type+"]");
  			fis = new FileInputStream(pfxkeyfile);
  			char[] nPassword = null;
  			nPassword = null == keypwd || "".equals(keypwd.trim()) ? null: keypwd.toCharArray();
  			if (null != ks) {
  				ks.load(fis, nPassword);
  			}
  			return ks;
  		} catch (Exception e) {
  			LogUtil.writeErrorLog("getKeyInfo Error", e);
  			return null;
  		} finally {
  			if(null!=fis)
  				fis.close();
  		}
  	}
docs: 将签名私钥证书文件读取为证书存储对象
  
  @param pfxkeyfile
  证书文件名
  @param keypwd
  证书密码
  @param type
  证书类型
  @return 证书对象
  @throws IOException