Java 7 support of AES-GCM in SSL/TLS?

后端 未结 5 907
别跟我提以往
别跟我提以往 2020-12-09 05:23

According to Java 7 documentation as well as third party vendors, it appears Java 7 should support AES-GCM suites:

  1. ibm java 7
  2. java 7 ssl doc
5条回答
  •  盖世英雄少女心
    2020-12-09 06:07

    As others said Java 1.7 does not support that cipher but, if you have the possibility to tweak your java installation you can add the security providers. Here the steps:

    1. download from bouncycastle.org bcprov-ext-jdk15on-159.jar and bctls-jdk15on-159.jar and put then into the lib/ext directory of your jre/jdk (159 is the latest version now)
    2. edit the file lib/security/java.security of your jre/jdk and put the following lines:
    • security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider -security.provider.2=org.bouncycastle.jsse.provider.BouncyCastleJsseProvider
    1. renumerate all the following security providers by adding 2 (so security.provider.1=sun.security.provider.Sun becomes security.provider.3=sun.security.provider.Sun)

    That's all, it should work now

提交回复
热议问题