javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgor
2015-03-05 11:01
931 查看
在tomcat中启动报错
重要解决方法:
在catalina.sh中, 加入:
J***A_OPTS='-Xms4096m -Xmx7048m -XX:MaxNewSize=1024m -XX:MaxPermSize=512m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false' -Djavax.net.ssl.keyStore=/home/monitor/server-4.6.6/hq-engine/hq-server/id.keystore
如此
The JVM cannot find the
For standard installations, we do not recommend this JVM argument is used, and rather your certificates are added to the JVM's default keystore, which is typically located in
as in our Running JIRA over SSL or HTTPS documentation.
Follow our
Connecting to SSL services documentation. This will guide you through obtaining the certificate of the service you're accessing and importing it into the recommended Java keystore.
If you're using a non-standard keystore, such as the one specified
in Tomcat, please import the certificate into that keystore.
http://blog.chinaunix.net/uid-26284318-id-3069142.html
the detail :
http://architecturalatrocities.com/post/19073788679/fixing-the-trustanchors-problem-when-running
关于配置:
http://blog.chintoju.com/2013/03/jdk-jbosstomcat-ssl-issue-the-trusta.html
在bin/catalina.sh中, 加入:
-Djavax.net.ssl.trustStore=<TRUST_STORE_LOCATION>
-Djavax.net.ssl.trustStorePassword=<TRUST_STORE_PASSWORD>
____________________________________________________________
J***A_OPTS='-Xms4096m -Xmx7048m -XX:MaxNewSize=1024m -XX:MaxPermSize=512m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false' -Djavax.net.ssl.keyStore=/home/monitor/server-4.6.6/hq-engine/hq-server/id.keystore
关于探讨,
http://stackoverflow.com/questions/4764611/java-security-invalidalgorithmparameterexception-the-trustanchors-parameter-mus
中提供了一种方法:
When I copied my
from windows to linux, it worked fine.
重要解决方法:
在catalina.sh中, 加入:
J***A_OPTS='-Xms4096m -Xmx7048m -XX:MaxNewSize=1024m -XX:MaxPermSize=512m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false' -Djavax.net.ssl.keyStore=/home/monitor/server-4.6.6/hq-engine/hq-server/id.keystore
如此
Cause
The JVM cannot find the javax.net.ssl.trustStorerequired for SSL, or it does not contain the required certificates.
For standard installations, we do not recommend this JVM argument is used, and rather your certificates are added to the JVM's default keystore, which is typically located in
$J***A_HOME/jre/lib/security/cacertsor the keystore used by your Tomcat,
as in our Running JIRA over SSL or HTTPS documentation.
Resolution
Follow our Connecting to SSL services documentation. This will guide you through obtaining the certificate of the service you're accessing and importing it into the recommended Java keystore.
If you're using a non-standard keystore, such as the one specified
in Tomcat, please import the certificate into that keystore.
http://blog.chinaunix.net/uid-26284318-id-3069142.html
the detail :
http://architecturalatrocities.com/post/19073788679/fixing-the-trustanchors-problem-when-running
关于配置:
http://blog.chintoju.com/2013/03/jdk-jbosstomcat-ssl-issue-the-trusta.html
在bin/catalina.sh中, 加入:
-Djavax.net.ssl.trustStore=<TRUST_STORE_LOCATION>
-Djavax.net.ssl.trustStorePassword=<TRUST_STORE_PASSWORD>
____________________________________________________________
J***A_OPTS='-Xms4096m -Xmx7048m -XX:MaxNewSize=1024m -XX:MaxPermSize=512m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false' -Djavax.net.ssl.keyStore=/home/monitor/server-4.6.6/hq-engine/hq-server/id.keystore
关于探讨,
http://stackoverflow.com/questions/4764611/java-security-invalidalgorithmparameterexception-the-trustanchors-parameter-mus
中提供了一种方法:
When I copied my
jre/lib/security/cacertsfile
from windows to linux, it worked fine.
相关文章推荐
- 微信证书 javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
- android 接支付宝在4.1版本下报java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0D
- 解决 javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
- andorid HTTPS 不需要证书 VolleyEror: com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not fou
- android ksoap2 访问https javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorExce
- javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException:
- Exception in thread "Timer-0" java.lang.SecurityException: SHA1 digest error for javax/mail/internet/AddressException.class
- resin WED服务器初用遇到的问题和解决方法 java.lang.RuntimeException: java.net.SocketException: Unrecognized Windows Socke ts error: 0: JVM_Bind
- ERROR/AndroidRuntime(716): java.lang.SecurityException: Binder invocation to an incorrect interface
- javax.management.RuntimeErrorException: java.lang.UnsatisfiedLinkError: no jicmp6 in java.library.pa
- ERROR/AndroidRuntime(716): java.lang.SecurityException: Binder invocation to an incorrect interface
- java.lang.ClassCastException: libcore.net.http.HttpURLConnectionImpl cannot be cast to javax.net.ssl
- ERROR/AndroidRuntime(716): java.lang.SecurityException: Binder invocation to an incorrect interface
- 【解决问题】failed: java.lang.RuntimeException: org.openqa.selenium.WebDriverException: Unexpected error launching Internet Explorer.
- ERROR/AndroidRuntime(716): java.lang.SecurityException: Binder invocation to an incorrect interface
- java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.wifi.SCAN_RESULTS flg
- 【cas、tomcat】HTTP Status 500 - javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateExc
- Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must
- Linux下tomcat配置ssl中报错问题的解决javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateExcepti
- javax.net.ssl.SSLHandshakeException: sun.security.validator 问题解决,与环境有关