下载平台证书接口成功后,在解密的过程中
Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding");
SecretKeySpec key = new SecretKeySpec(aesKey, "AES");
GCMParameterSpec spec = new GCMParameterSpec(TAG_LENGTH_BIT, nonce);
cipher.init(Cipher.DECRYPT_MODE, key, spec); //运行这里报错
java.lang.IllegalArgumentException: java.security.InvalidKeyException: Illegal key size
需要替换jdk里面的local_policy.jar,US_export_policy.jar,本地测试没问题了,但是我不敢往生产环境上放,有其他的项目在运行,哎