java.security.InvalidKeyException: Supplied key (sun.security.provider.DSAPrivateKey) is not a RSAPrivateKey instance

nabble.com | 6 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

    Axis2-user - axis2 1.6.0 rampart exception in keystore

    nabble.com | 6 months ago
    java.security.InvalidKeyException: Supplied key (sun.security.provider.DSAPrivateKey) is not a RSAPrivateKey instance
  2. 0

    Bug 40826 – Private keys must be instance of RSAPrivate or have PKCS#8 encoding

    apache.org | 6 months ago
    java.security.InvalidKeyException: Private key must be instance of RSAPrivate(Crt)Key or have PKCS#8 encoding

    Root Cause Analysis

    1. java.security.InvalidKeyException

      Supplied key (sun.security.provider.DSAPrivateKey) is not a RSAPrivateKey instance

      at org.apache.ws.security.message.WSSecSignature.computeSignature()
    2. Apache WSS4J
      WSSecSignature.computeSignature
      1. org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:722)
      1 frame
    3. Rampart - Core
      AsymmetricBindingBuilder.doSignature
      1. org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(AsymmetricBindingBuilder.java:732)
      1 frame