Java SSL DH Keypair Generation - Prime Size Error

前端 未结 4 573
忘掉有多难
忘掉有多难 2021-01-02 23:30

I\'m currently implementing Reddit OAuth2 login into my web app. The handshake and token exchange work fine when testing locally but when running on the server (hosted on \'

4条回答
  •  天涯浪人
    2021-01-03 00:28

    I know I am very late to answer this but I was struggling with the similar problem and then solved it. My solution is for MAC-OS.

    1. Install Bouncy Castle jar from http://www.bouncycastle.org/latest_releases.html, in /Library/Java/JavaVirtualMachines//Contents/Home/jre/lib/ext
    2. edit java.security file add the below line security.provider.2=org.bouncycastle.jce.provider.BouncyCastleProvider and then reorder all the other providers you may have.
    3. voila

提交回复
热议问题