@Test
public void testRsa() throws Exception {
RsaUtils.generateKey(publicKeyPath, privateKeyPath, "234");
}
也是乐优商城生成公钥和私钥报这个错,需要先将下面这个方法或者@Before注释掉,因为这个时候公钥和私钥还没有生成所以读取不到任何内容
@Before
public void testGetRsa() throws Exception {
privateKey = RsaUtils.getPrivateKey(privateKeyPath);
publicKey = RsaUtils.getPublicKey(publicKeyPath);
}


