Java refusing certificate that browser accepts

后端 未结 2 2051
慢半拍i
慢半拍i 2020-12-20 09:06

I\'m having trouble configuring a valid certificate (not self-signed!) in Wildfly 9. I have configured the HTTPS connector in Wildfly:

            

        
相关标签:
2条回答
  • 2020-12-20 09:38

    It's happening because none of the certificates in the chain is trusted by the Java truststore.

    The most general solution would be to import the top certificate (the last in the chain, the topmost signer) into the JRE's lib/security/cacerts file.

    0 讨论(0)
  • 2020-12-20 09:43

    The problem here is that Java by default comes with a very limited set of root CA certificates. It "accepts" far fewer CAs than a typical browser. The simplest way to solve the problem is to export a set of CA certificates from a browser like Chrome or Firefox and import them into Java's keystore using keytool.

    0 讨论(0)
提交回复
热议问题