zoukankan      html  css  js  c++  java
  • connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "java.lang.RuntimeException: Could not generate DH keypair

    1 下载   bcprov-ext-jdk15on-1.54.jar      bcprov-jdk15on-1.54.jar    ssl-provider-jvm16    mchange-commons-java.0.2.3.4 .jar     拷贝到 to jdk1.6.0_XXjrelibext
     
     ssl-provider-jvm16    下载地址  https://github.com/tobszarny/ssl-provider-jvm16/releases  
    2 修改如下配置文件内容
    Bouncy Castle based SSL provider for JVM 1.6. Mainly to fill the gaps for SSL connectivity with SQLServer over JDBC.
    ABSOLETE IF YOU CAN UPGRADE BOUNCY CASTLE TO VERSION 1.58+
    Solves problems with encoding strength, which is below SQLServer required on JVM 1.6. Solves problem with message error "Unsupported curveId: XX"
    Edit jdk1.6.0_XXjrelibsecurityjava.security
     

    security.provider.1=sun.security.provider.Sun
    security.provider.2=net.tobszarny.ssl.java6.provider.BouncyCastleSSLProvider
    security.provider.3=org.bouncycastle.jce.provider.BouncyCastleProvider
    security.provider.4=sun.security.rsa.SunRsaSign
    security.provider.5=com.sun.net.ssl.internal.ssl.Provider
    security.provider.6=com.sun.crypto.provider.SunJCE
    security.provider.7=sun.security.jgss.SunProvider
    security.provider.8=com.sun.security.sasl.Provider
    security.provider.9=org.jcp.xml.dsig.internal.dom.XMLDSigRI
    security.provider.10=sun.security.smartcardio.SunPCSC
    security.provider.11=sun.security.mscapi.SunMSCAPI

    重启OK

     
     
    重启OK
     
     
     
  • 相关阅读:
    五种I/O模型
    Python socket服务
    Python 协程
    python openpyxl 简单使用
    python 文件夹压缩
    Python 多进程
    MySQL 自定义函数
    python 队列
    python 多线程、线程锁、事件
    python paramiko模块:远程连接服务器
  • 原文地址:https://www.cnblogs.com/ajaxa/p/12205098.html
Copyright © 2011-2022 走看看