java.lang.IllegalArgumentException: RSA signatures must be computed using an RSAPrivateKey. The specified key of type sun.security.mscapi.RSAPrivateKey is not an RSAPrivateKey.

GitHub | x2on | 3 months ago
  1. 0

    Windows RSAPrivateKey (MSCAPI)

    GitHub | 3 months ago | x2on
    java.lang.IllegalArgumentException: RSA signatures must be computed using an RSAPrivateKey. The specified key of type sun.security.mscapi.RSAPrivateKey is not an RSAPrivateKey.
  2. 0

    iKey 2032 IllegalArgumentException: not an RSA key problem

    Oracle Community | 10 years ago | 843811
    java.lang.IllegalArgumentException: not an RSA key!
  3. 0

    db:: 3.97::SunPKCS11 provider and Rainbow iKey 2032 USB token - can't load keys as

    hivmr.com | 11 months ago
    java.lang.IllegalArgumentException: not an RSA key!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    db:: 3.97::SunPKCS11 provider and Rainbow iKey 2032 USB token - can't load keys as

    hivmr.com | 11 months ago
    java.lang.IllegalArgumentException: not an RSA key!
  6. 0

    Problem getting private key from PKCS#11 device

    Oracle Community | 8 years ago | 843811
    java.lang.IllegalArgumentException: not an RSA key!

    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.lang.IllegalArgumentException

      RSA signatures must be computed using an RSAPrivateKey. The specified key of type sun.security.mscapi.RSAPrivateKey is not an RSAPrivateKey.

      at io.jsonwebtoken.impl.crypto.RsaSigner.<init>()
    2. io.jsonwebtoken.impl
      DefaultJwtBuilder.compact
      1. io.jsonwebtoken.impl.crypto.RsaSigner.<init>(RsaSigner.java:34)
      2. io.jsonwebtoken.impl.crypto.DefaultSignerFactory.createSigner(DefaultSignerFactory.java:43)
      3. io.jsonwebtoken.impl.crypto.DefaultJwtSigner.<init>(DefaultJwtSigner.java:37)
      4. io.jsonwebtoken.impl.crypto.DefaultJwtSigner.<init>(DefaultJwtSigner.java:32)
      5. io.jsonwebtoken.impl.DefaultJwtBuilder.createSigner(DefaultJwtBuilder.java:339)
      6. io.jsonwebtoken.impl.DefaultJwtBuilder.compact(DefaultJwtBuilder.java:321)
      6 frames