java.security.cert.CertificateException: Certificates does not conform to algorithm constraints

后端 未结 9 1575
难免孤独
难免孤独 2020-11-30 02:59

I have a mapping application that can add ArcGIS 9.3+ base maps given a URL. One of the URLs that I would like to add is from a customer\'s URL and is secured. My

9条回答
  •  失恋的感觉
    2020-11-30 03:48

    Eclipse failed to connect to SVN https repositories (should also apply to any app using SSL/TLS).

    svn: E175002: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificates does not conform to algorithm constraints

    The issue was caused by latest Java 8 OpenJDK update that disabled MD5 related algorithms. As a workaround until new certificates are issued (if ever), change the following keys at java.security file

    WARNING
    Keep in mind that this could have security implications as disabled algorithms are considered weak. As an alternative, the workaround can be applied on a JVM basis by a command line option to use an external java.security file with this changes, e.g.:
    java -Djava.security.properties=/etc/sysconfig/noMD5.java.security
    For Eclipse, add a line on eclipse.ini below -vmargs
    -Djava.security.properties=/etc/sysconfig/noMD5.java.security

    original keys

    jdk.certpath.disabledAlgorithms=MD2, MD5, RSA keySize < 1024
    jdk.tls.disabledAlgorithms=SSLv3, RC4, MD5withRSA, DH keySize < 768
    

    change to

    jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 1024
    jdk.tls.disabledAlgorithms=SSLv3, RC4, DH keySize < 768
    

    java.security file is located in linux 64 at /usr/lib64/jvm/java/jre/lib/security/java.security

提交回复
热议问题