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

无法验证第一个证书——WSO2 API Manager使用问题

解决WSO2 API Manager Postman调用问题

问题1:Unable to verify the first certificate(证书验证失败)

  • 快速临时解决:打开Postman右上角设置图标,进入General选项卡,关闭「SSL certificate verification」开关,重启Postman后重试请求。
  • 合规持久解决:导出WSO2 APIM的CA证书,路径通常为<APIM_HOME>/repository/resources/security/wso2carbon.jks,用keytool命令导出为crt格式:
    keytool -export -alias wso2carbon -file wso2carbon.crt -keystore <APIM_HOME>/repository/resources/security/wso2carbon.jks -storepass wso2carbon
    
    然后在Postman的Settings > Certificates中,将导出的wso2carbon.crt添加到「CA Certificates」区域,保存后重启Postman。

问题2:所有请求返回404 Not Found

  • 核对API端点URL:确认Postman请求的URL与WSO2 APIM发布的API完全一致,包括网关地址(默认https://localhost:8243)、API上下文、版本号,比如正确格式应为https://localhost:8243/<api-context>/<version>/<resource-path>。
  • 确认API状态:登录WSO2 APIM Publisher,检查目标API的状态为「Published」,且已成功部署到网关。
  • 检查订阅与令牌:在Developer Portal中,确认使用的应用已订阅该API,并且生成了有效访问令牌,Postman请求的Authorization头需正确携带Bearer <access-token>(若API需授权)。
  • 验证网关服务:确认WSO2 APIM的网关服务(apim-gateway)已正常启动,查看<APIM_HOME>/repository/logs/wso2carbon.log无启动报错。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.26 00:52:10