PrivateKey merchantPrivateKey = PemUtil .loadPrivateKey(new ByteArrayInputStream(privateKey.getBytes("utf-8"))); 应该用这个,不说的话完全不知道要用哪个PrivateKey