WSO2carbon的RSA公钥 [英] RSA Public Key of WSO2carbon

查看:124
本文介绍了WSO2carbon的RSA公钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从WSOAM生成JWT令牌,然后将其作为标头传递给API.我已经在nodejs中创建了我的API,并且正在使用 jsonwebtoken 插件来验证和解码JWT.

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.

我找不到Wso2carbon的RSA公钥来验证/解码令牌.

I am unable to find RSA Public key of Wso2carbon to verify/decode the token.

请为我提供有关如何生成RSA公钥或在哪里可以找到此密钥的帮助?

Please help me as how to generate the RSA Public key or where should I find this key ?

推荐答案

所有WSO2产品均使用安装在 wso2carbon.jks密钥库文件.建议使用您自己的密钥库,而不是所有WSO2产品随附的默认密钥库.

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.

建议将此默认密钥库替换为新的密钥库 当产品是 部署在生产环境中.这是因为wso2carbon.jks是 可与开源WSO2产品一起使用,这意味着任何人都可以拥有 访问默认密钥库的私钥.

It is recommended to replace this default keystore with a new keystore that has self-signed or CA signed certificates when the products are deployed in production environments. This is because wso2carbon.jks is available with open source WSO2 products, which means anyone can have access to the private key of the default keystore.

如果要使用默认的私钥/公钥,请使用以下命令来提取密钥.

If you are going to use the default private/public keys, use the following command to extract the key.

keytool -export -keystore <WSO2_AM>/repository/resources/security/wso2carbon.jks -alias wso2carbon -file Example.cer

这篇关于WSO2carbon的RSA公钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆