mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-08 12:06:07 +08:00
证书字符串信息编码IOS-8859-1
This commit is contained in:
@@ -112,7 +112,7 @@ public class HttpRequestTemplate {
|
||||
}
|
||||
|
||||
//读取本机存放的PKCS12证书文件
|
||||
try(InputStream instream = configStorage.isPath() ? new FileInputStream(new File(configStorage.getKeystore())) : new ByteArrayInputStream(configStorage.getKeystore().getBytes())){
|
||||
try(InputStream instream = configStorage.isPath() ? new FileInputStream(new File(configStorage.getKeystore())) : new ByteArrayInputStream(configStorage.getKeystore().getBytes("ISO-8859-1"))){
|
||||
//指定读取证书格式为PKCS12
|
||||
KeyStore keyStore = KeyStore.getInstance("PKCS12");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user