Skip to content

SecurityTokenInvalidSignatureException: IDX10511

BrentSchmaltz edited this page Oct 18, 2018 · 2 revisions

IDX10511: Signature validation failed

This exception message can be generated when a 'JsonWebKey' has a modulus of size 257 bytes and the first byte is a '0' (ZERO).


For example:

var jsonWebKey = new JsonWebKey
{
    KeyId = "xneUh4tPkUPsVH/okK+VMrXirVA=",
    Kid = "xneUh4tPkUPsVH/okK+VMrXirVA=",
    N = "ALq7LDOgZRirsfc308DI_hSwSRZsYpPhiD69WyA65s-wRpG276x5SoWeyMOZJMi4qz2CG6K51_mHov0ZFmdN3sXARQPOgvepwQ1hY2OPRVmWzitdAP3b_UDuJR_rBIsSXVjnaDOdF_y9vefmVWanDh3Aef5Dk_0TzPexMod_WbEgcnibIgg4aZMSUeFsAViYkYSfgXrF16nZm2A3QJTbSuFTGpr9VPVLdD7mRvBgNXhm117OTg5OIBzRUnLrKlcqIg41uPdFHxNCJI3ukfyw9hvoHb1qCdAO3I9L66ZXdXTjY6uhoqgP_OGo6ze3BpQtIcECInNU7qkNd8CJ_MMRqgE",
    Alg = "RS256",
    E = "AQAB",
    Kty = "RSA",
    Use = "sig"
};
Clone this wiki locally