java.security.KeyStoreException: Cannot store non-PrivateKeys

myds.me | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to use the certificate for Tomcat - Server - Let's Encrypt Community Support

    letsencrypt.org | 7 months ago
    java.security.KeyStoreException: Cannot store non-PrivateKeys
  2. 0

    HTTPS for Tomcat 7 with Let’s Encrypt – one melo a day

    myds.me | 7 months ago
    java.security.KeyStoreException: Cannot store non-PrivateKeys
  3. 0

    ADFS 3.0 SAML not working |Tableau Support Community

    tableau.com | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#0' while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#0': Cannot resolve reference to bean 'samlFilter' while setting constructor argument with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'samlFilter' defined in URL [file:/D:/Program%20Files/Tableau/Tableau%20Server/data/tabsvc/config/wgserver/samlSecurityContext.xml]: Cannot resolve reference to bean 'samlEntryPoint' while setting bean property 'filterChainMap' with key [Root bean: class [org.springframework.security.web.util.matcher.AntPathRequestMatcher]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'samlEntryPoint': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.security.saml.SAMLEntryPoint.setMetadata(org.springframework.security.saml.metadata.MetadataManager); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadata': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.security.saml.metadata.MetadataManager.setKeyManager(org.springframework.security.saml.key.KeyManager); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'keyManager' defined in URL [file:/D:/Program%20Files/Tableau/Tableau%20Server/data/tabsvc/config/wgserver/samlSecurityContext.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.tableausoftware.domain.user.saml.TabKeyManager]: Constructor threw exception; nested exception is java.security.KeyStoreException: Cannot store non-PrivateKeys
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    db:: 3.59::Store secrect key in java keystore am

    hivmr.com | 1 year ago
    java.security.KeyStoreException: Cannot store non-PrivateKeys
  6. 0

    java.security.KeyStoreException: Cannot store non-PrivateKeys

    Oracle Community | 1 decade ago | 843811
    java.security.KeyStoreException: Cannot store non-PrivateKeys

  1. Alireza Mohamadi 3 times, last 3 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.security.KeyStoreException

    Cannot store non-PrivateKeys

    at sun.security.provider.JavaKeyStore.engineSetKeyEntry()
  2. Java RT
    KeyStore.setKeyEntry
    1. sun.security.provider.JavaKeyStore.engineSetKeyEntry(JavaKeyStore.java:258)
    2. sun.security.provider.JavaKeyStore$JKS.engineSetKeyEntry(JavaKeyStore.java:56)
    3. sun.security.provider.KeyStoreDelegator.engineSetKeyEntry(KeyStoreDelegator.java:117)
    4. sun.security.provider.JavaKeyStore$DualFormatJKS.engineSetKeyEntry(JavaKeyStore.java:70)
    5. java.security.KeyStore.setKeyEntry(KeyStore.java:1140)
    5 frames
  3. Grizzly HTTP
    AbstractHttp11Protocol.init
    1. org.apache.tomcat.util.net.jsse.JSSEUtil.getKeyManagers(JSSEUtil.java:302)
    2. org.apache.tomcat.util.net.AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:90)
    3. org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:245)
    4. org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:839)
    5. org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:558)
    6. org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:65)
    6 frames
  4. Glassfish Core
    Catalina.load
    1. org.apache.catalina.connector.Connector.initInternal(Connector.java:1010)
    2. org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
    3. org.apache.catalina.core.StandardService.initInternal(StandardService.java:549)
    4. org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
    5. org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:873)
    6. org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
    7. org.apache.catalina.startup.Catalina.load(Catalina.java:606)
    8. org.apache.catalina.startup.Catalina.load(Catalina.java:629)
    8 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  6. Glassfish Core
    Bootstrap.main
    1. org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)
    2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)
    2 frames