Skip to content

Instantly share code, notes, and snippets.

@sujayathavale
Created July 20, 2020 09:45
Show Gist options
  • Save sujayathavale/1ec7336f66838b11108e0c645cd62f91 to your computer and use it in GitHub Desktop.
Save sujayathavale/1ec7336f66838b11108e0c645cd62f91 to your computer and use it in GitHub Desktop.
<!-- Assumption is that the certificate (rsa-cert.pfx), containing issuer's keys has already been uploaded to API Management -->
<validate-jwt header-name="Authorization">
<issuer-signing-keys>
<key certificate-id="rsa-cert" />
</issuer-signing-keys>
</validate-jwt>
@hksfho
Copy link

hksfho commented Aug 4, 2020

thanks for your article: https://platform.deloitte.com.au/articles/validating-rsa-jwt-tokens-with-azure-api-management

hi I am using this command generate key for jwt singing.
#ssh-keygen -t rsa -b 4096 -m PEM -f jwt

#openssl rsa -in jwt -pubout -outform PEM -out jwt.pub
May I ask how to convert to pfx for apim?

@sujayathavale
Copy link
Author

You are welcome! Have you tried this https://www.ssl.com/how-to/create-a-pfx-p12-certificate-file-using-openssl/ ? Inputs need to be the certificate and key file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment