java.lang.SecurityException: Cannot set up certs for trusted CAs


Solutions on the web

Solution icon of github
Cannot set up certs for trusted CAs

Solution icon of oraclecommunity
Cannot set up certs for trusted CAs

Solution icon of oraclecommunity
Cannot set up certs for trusted CAs

Solution icon of web
Cannot set up certs for trusted CAs

Solution icon of apache
Cannot set up certs for trusted CAs

Solution icon of sourceforge
Cannot set up certs for trusted CAs

Solution icon of stackoverflow
Cannot set up certs for trusted CAs

Solution icon of web
Cannot set up certs for trusted CAs

Solution icon of web
Cannot set up certs for trusted CAs

Solution icon of sourceforge
Cannot set up certs for trusted CAs

Stack trace

java.lang.SecurityException: Cannot set up certs for trusted CAs
	at javax.crypto.b.<clinit>(Unknown Source)
	at javax.crypto.d.<clinit>(Unknown Source)
	at javax.crypto.Cipher.c(Unknown Source)
	at javax.crypto.Cipher.getMaxAllowedKeyLength(Unknown Source)
	at net.sf.keystore_explorer.crypto.jcepolicy.JcePolicyUtil.unlimitedStrengthTest(JcePolicyUtil.java:113)
	at net.sf.keystore_explorer.crypto.jcepolicy.JcePolicyUtil.isLocalPolicyCrytoStrengthLimited(JcePolicyUtil.java:69)
	at net.sf.keystore_explorer.gui.CreateApplicationGui.run(CreateApplicationGui.java:96)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:324)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:757)
	at java.awt.EventQueue.access$300(EventQueue.java:115)
	at java.awt.EventQueue$3.run(EventQueue.java:718)
	at java.awt.EventQueue$3.run(EventQueue.java:716)
	at java.security.AccessController.doPrivileged(AccessController.java:422)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:92)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:727)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:254)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:162)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:158)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:103)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.