mirror of https://gitee.com/topiam/eiam
修改CertUtils中证书换行符兼容不同操作系统
parent
a3a586abbe
commit
680594ca81
|
@ -61,9 +61,11 @@ import okhttp3.CertificatePinner;
|
|||
*/
|
||||
public class CertUtils {
|
||||
private static final Logger logger = LoggerFactory.getLogger(CertUtils.class);
|
||||
public static final String BEGIN_CERT = "-----BEGIN CERTIFICATE-----\n";
|
||||
|
||||
private static final String LINE_SEPARATOR = System.getProperty("line.separator");
|
||||
public static final String BEGIN_CERT = "-----BEGIN CERTIFICATE-----" + LINE_SEPARATOR;
|
||||
public static final String END_CERT = "-----END CERTIFICATE-----";
|
||||
public static final String BEGIN_KEY = "-----BEGIN RSA PRIVATE KEY-----\n";
|
||||
public static final String BEGIN_KEY = "-----BEGIN RSA PRIVATE KEY-----" + LINE_SEPARATOR;
|
||||
public static final String END_KEY = "-----END RSA PRIVATE KEY-----";
|
||||
static {
|
||||
Security.addProvider(new BouncyCastleProvider());
|
||||
|
|
Loading…
Reference in New Issue