You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

WSO2 APIM 4.1.0无法连接WSO2 IS作为密钥管理器求助

WSO2 API Manager 4.1.0 对接WSO2 Identity Server密钥管理器令牌生成失败问题

问题详情

  • 环境:WSO2 API Manager 4.1.0,OpenJDK 11,服务器模式
  • 配置:已配置WSO2 Identity Server类型的密钥管理器
  • 异常信息:应用生成令牌时抛出错误

Error occurred while executing SubscriberKeyMgtClient. org.wso2.carbon.apimgt.api.APIManagementException: Key Manager IS not configured

  • 排查结论:系统未尝试连接IS,停止IS后错误依旧;同版本APIM对接Keycloak功能正常

排查与修复步骤

  1. 验证密钥管理器核心配置

    • 登录APIM管理控制台进入「Key Managers」页面,找到配置的IS密钥管理器
    • 确认以下配置项无误:
      • Key Manager Name:必须为IS(错误提示依赖该名称匹配配置)
      • Server URL:IS服务地址正确(格式如https://<IS_HOST>:9443)
      • 管理员账号密码:拥有IS的管理员权限
      • Token/Authorization/Introspect等端点URL:与IS实际端点一致
    • 点击「Test Connection」确认连接测试成功
  2. 检查deployment.toml配置映射

    • 编辑<APIM_HOME>/repository/conf/deployment.toml,确认IS密钥管理器配置段存在且正确:
      [[apim.key_manager]]
      name = "IS"
      type = "WSO2-IS"
      enabled = true
      display_name = "WSO2 Identity Server"
      description = "WSO2 Identity Server Key Manager"
      configuration = {
          server_url = "https://<IS_HOST>:9443",
          username = "<IS_ADMIN_USER>",
          password = "<IS_ADMIN_PWD>",
          token_endpoint = "https://<IS_HOST>:9443/oauth2/token",
          revoke_endpoint = "https://<IS_HOST>:9443/oauth2/revoke",
          introspect_endpoint = "https://<IS_HOST>:9443/oauth2/introspect"
      }
      
    • 确保enabled设置为true,无语法错误
  3. 清理缓存并重启APIM

    • 删除<APIM_HOME>/repository/tmp和<APIM_HOME>/repository/carbonapps目录下的缓存文件
    • 重启WSO2 APIM服务,使配置生效
  4. 查看日志定位底层错误

    • 打开<APIM_HOME>/repository/logs/wso2carbon.log,搜索Key Manager IS not configured相关堆栈信息,排查配置加载失败的深层原因(如文件权限、语法错误等)
  5. 确认IS密钥管理器扩展部署

    • 检查<APIM_HOME>/repository/components/dropins目录下是否存在org.wso2.carbon.apimgt.keymgt.is-*.jar文件
    • 若缺失,下载对应版本的IS密钥管理器扩展部署后重启APIM

内容的提问来源于stack exchange,提问作者user5919369

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.12 20:11:26