error:null when using SSL Security type in the Email Settings (OAuth 2.0)
说明
When configuring OAuth2.0 for the first time, and click on Test connect, it prompts an error from Stat as error:null.
原因
Fatal (CERTIFICATE_UNKNOWN): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
解决办法
A Java option allows you to specify the Keystore to use. Hardcode the default Keystore using the JAVA_OPTS in the standalone.conf.bat (.sh for Unix) file: -Djavax.net.ssl.trustStore=E:/Java/jdk1.8.0_341/jre/lib/security/cacerts
Manually add the certificates and the CA + intermediates to the location defined in the parameter.