Myron530
Myron530
` public static byte[] readPrivateKeyFromPem (String passwd, String filePath) throws Exception { InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream(filePath)); String priKeyStr = "MIIBBjBhBgkqhkiG9w0BBQ0wVDA0BgkqhkiG9w0BBQwwJwQQef6oPx3ecyTGZc5gGzvV+gIDAQAAAgEQMAsGCSqBHM9VAYMRAjAcBggqgRzPVQFoAgQQs3n3Cc3rRrVEjSRoagMaFQSBoAK6cI6C8/pSyqk6DL/5klJ/2IsLE0y2obFPjpXHhpGEJ4Xy55SqEBKony9wew6wVaYGeQRcnn6p3giasaFnrkI30xqfMKXDnzsGsTN7JZPUOuj9qTt+yZHML/rmhJWFRW2JiH5AKSUWQb5pmIdPWY28u1zNWRrm1xppwvB6+R/vjYyIooJSUUBp9QxX5C97nxgoJJrhlGpAitJRUoiv3no="; // 读取带密码保护的私钥: PEMParser pemParser = new PEMParser(inputStreamReader); //...