MD5withRSA签名的所有应用程序现在都被“未经批准”处理
但幸运的是,您可以通过更新C:\ Program Files(x86)\ Java \ jre1.8.0_131 \ lib \ security \ java.security来快速覆盖此设置
对于MACOS X / Library / Internet \插件/JavaAppletPlugin.plugin/Contents/Home/lib/security/java.security
要么
/图书馆/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/security/java.security
我用记事本打开了java.security文件,然后进行了几处更改(删除了MD5排除项):
jdk.jar.disabledAlgorithms = MD2,RSA keySize <1024
jdk.tls.disabledAlgorithms = SSLv3,RC4,DH keySize <768,\ EC keySize <224
jdk.tls.legacyAlgorithms = \ K_NULL,C_NULL,M_NULL,\ DHE_DSS_EXPORT,DHE_RSA_EXPORT,DH_anon_EXPORT,DH_DSS_EXPORT,\ DH_RSA_EXPORT,RSA_EXPORT,\ DH_anon,ECDH_anon,\ RC_C_BC,C_BC_E_C,\ RC4_BC_C,\ RC4C
ig.secureValidationPolicy = \ disallowAlg http://www.w3.org/TR/1999/REC-xslt-19991116,\ disallowAlg http://www.w3.org/2001/04/xmldsig-more#hmac-md5, \ disallowAlg http://www.w3.org/2001/04/xmldsig-more#md5,\ maxTransforms 5,\ maxReferences 30,\ disallowReferenceUriSchemes文件http https,\ minKeySize RSA 1024,\ minKeySize DSA 1024,\ noDuplicateIds,\ noRetrievalMethodLoops