I am generating JWT token from WSOAM which is then passed as a header to API. I have my API created in nodejs and I am using jsonwebtoken plugin to verify and decode the JWT.
I am unable to find RSA Public key of Wso2carbon to verify/decode the token.
Please help me as how to generate the RSA Public key or where should I find this key ?
All WSO2 products use the default public/private key pairs installed into wso2carbon.jks keystore file found in
<WSO2_AM>/repository/resources/security
directory. It's advised to use your own keystore instead of this default keystore shipped with all WSO2 products.If you are going to use the default private/public keys, use the following command to extract the key.