title: .Net Core 2.2 Validation of jwt failing with 401 on a container
body: <p>In .net core 2.2 when i containerize the app i get a Bearer error="invalid_token", error_description="The signature is invalid"</p>
  
  <p>It is working fine when i host it on windows using IIS/IIS express.</p>
  
  <p>My code -- The token generator is IBM API Connect it uses RSA 256 Algorithm to generate the key</p>
  
  <pre><code> var rsa = new RSACryptoServiceProvider();
   string exponentvalue = "AQAB";
   var e = Base64UrlEncoder.DecodeBytes(exponentvalue);
   var N = "public key  put your value here"
   var modulus = Base64UrlEncoder.DecodeBytes(N);
   rsa.ImportParameters(
       new RSAParameters()
       {
               Modulus = modulus,
               Exponent = e
      });
    var signingKey = new RsaSecurityKey(rsa);
  </code></pre>
  
  <pre><code>var tokenValidationParameters = new TokenValidationParameters
            {
                // The signing key must match!
                ValidateIssuerSigningKey = true,
                IssuerSigningKey = signingKey,
  
                // Validate the JWT Issuer (iss) claim
                ValidateIssuer = false,
                ValidIssuer = issuer,
  
                // Validate the JWT Audience (aud) claim
                ValidateAudience = false,
                ValidAudience = audience,
  
                // Validate the token expiry
                //ValidateLifetime = true,
  
                // If you want to allow a certain amount of clock drift, set that here:
                //ClockSkew = TimeSpan.FromMinutes(1)
            };
  </code></pre>
  
  <p>Any idea why it wouldn't be working on a container hosted either locally on docker or AKS?</p>