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

nabble.com | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Axis2-user - axis2 1.6.0 rampart exception in keystore

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