====== Token JWT et certificats ====== ===== Sources ===== * https://garywoodfine.com/asp-net-core-2-2-jwt-authentication-tutorial/ * https://stackoverflow.com/questions/38794670/how-to-create-encrypted-jwt-in-c-sharp-using-rs256-with-rsa-private-key * https://dejanstojanovic.net/aspnet/2018/june/token-based-authentication-in-aspnet-core-part-3/ * https://stackoverflow.com/questions/36152633/validating-access-token-with-at-hash * https://github.com/dvsekhvalnov/jose-jwt * http://www.bouncycastle.org/csharp/ * https://jwt.io/ * https://connect2id.com/learn/token-binding * https://github.com/manfredsteyer/angular-oauth2-oidc * https://vosseburchttechblog.azurewebsites.net/index.php/2015/09/19/generating-and-consuming-json-web-tokens-with-net/ * https://www.youtube.com/watch?v=EJeZ3YNnqz8 * https://github.com/IdentityServer/IdentityServer4/issues/1786 ===== Generating RSA private/public key pair ===== openssl genrsa -out private.pem 2048 openssl rsa -in private.pem -outform PEM -pubout -out public.pem ===== Public keys : PEM to JWK ===== https://github.com/dannycoates/pem-jwk pem-jwk public.pem > public.jwk