java.security.KeyStoreException: Cannot store non-PrivateKeys

Server Fault | Pratap Patil | 3 years 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

    Using self signed certificates with Tigase XMPP server

    Server Fault | 3 years ago | Pratap Patil
    java.security.KeyStoreException: Cannot store non-PrivateKeys
  2. 0

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

    letsencrypt.org | 8 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 4 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:250)
    2. sun.security.provider.JavaKeyStore$JKS.engineSetKeyEntry(JavaKeyStore.java:55)
    3. java.security.KeyStore.setKeyEntry(KeyStore.java:909)
    3 frames
  3. tigase.io
    TLSUtil.configureSSLContext
    1. tigase.io.SSLContextContainer.addCertificateEntry(SSLContextContainer.java:199)
    2. tigase.io.SSLContextContainer.init(SSLContextContainer.java:421)
    3. tigase.io.TLSUtil.configureSSLContext(TLSUtil.java:89)
    3 frames
  4. tigase.conf
    Configurator.componentAdded
    1. tigase.conf.ConfiguratorAbstract.setProperties(ConfiguratorAbstract.java:815)
    2. tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:550)
    3. tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:182)
    4. tigase.conf.Configurator.componentAdded(Configurator.java:50)
    5. tigase.conf.Configurator.componentAdded(Configurator.java:33)
    5 frames
  5. tigase.server
    XMPPServer.start
    1. tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:115)
    2. tigase.server.MessageRouter.addRegistrator(MessageRouter.java:141)
    3. tigase.server.MessageRouter.setConfig(MessageRouter.java:696)
    4. tigase.server.XMPPServer.start(XMPPServer.java:142)
    4 frames