= null)
out.close();
}
}
/**
* 生成用户证书
*
* @param sbh
* 纳税人识别号(文件名...* @return map里面包含两个key,一个code,一个msg,如果code等于0000则为生成成功,如果code不等于0000则为生成失败,
* msg里面保存失败原因...key 参数为key的长度 对于rsa不能小于512
X500Name subject = new X500Name(
“CN=root,OU=root,O=wp,L=BJ,S=BJ,C=CN...signCert(rootPath, certPath, user, password, sbh, ip);
map.put(“code”, “0000”);
map.put(“msg”, “用户证书生成成功...certPath);
if (file2.exists())
file2.delete();
map.put(“code”, “9999”);
map.put(“msg”, “生成用户证书发生异常