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 | 4 months ago
  1. 0

    Windows RSAPrivateKey (MSCAPI)

    GitHub | 4 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
    This error is caused by malformed HTTP request. You are trying to access unsecured page through https.
  3. 0
    Some bots are sending malformed HTTP requests to your site. Try to find their IP addresses in the access logs and ask them to fix the bots or blacklist them.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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