Skip to content

Commit

Permalink
证书字符串信息编码IOS-8859-1
Browse files Browse the repository at this point in the history
  • Loading branch information
egzosn committed Sep 30, 2018
1 parent f1c31a1 commit c363f0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public SSLConnectionSocketFactory createSSL( HttpConfigStorage configStorage){
}

//读取本机存放的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");

Expand Down

0 comments on commit c363f0d

Please sign in to comment.