Skip to content

Failed to get signing key: UNABLE_TO_GET_ISSUER_CERT_LOCALLY #14857

@ArunkumarTMEYGDS

Description

@ArunkumarTMEYGDS

Describe the bug
We created a sample Teams Agent app using M365 Agents Toolkit from template path
M365 Toolkit -> Create a New Agent/App -> Teams Agents and Apps -> General Teams Agent

We have Custom upload enabled with Copilot license. We have created a simple test Azure OpenAI Agent and used its key, end point and deployment name to create a sample solution to test it and it gave the below error while debugging in Teams in Egde and post a query to agent.

[ERROR] @teams/app/http/jwt-validation-middleware/jwt-validator

Failed to get signing key: {
"code": "UNABLE_TO_GET_ISSUER_CERT_LOCALLY"
}

JWT verification failed: {
"name": "JsonWebTokenError",
"message": "error in secret or public key callback: unable to get local issuer certificate"
}

We tried installing certificate by following below blog and adding the commented code mentioned in m365agents.local.yml but still getting same error.

https://github.com/OfficeDev/microsoft-365-agents-toolkit/wiki/%7BDebug%7D-FAQ#what-to-do-if-i-do-not-want-to-install-the-development-certificate

Image

To Reproduce
Steps to reproduce the behavior:

  1. Install M365 Agents Tookit in VS Code
  2. Create a simple test Azure OpenAI Agent
  3. Create a sample template using M365 Toolkit -> Create a New Agent/App -> Teams Agents and Apps -> General Teams Agent
  4. Provide Key, endpoint URL and deployment name.
  5. Run the solution for debugging in Teams in Egde/Chrome

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

Image

VS Code Extension Information (please complete the following information):

  • OS: Windows 11
  • Version 23H2

CLI Information (please complete the following information):

  • OS: Windows 11
  • Version 23H2

Additional context
M365 Agents Toolkit version: 6.4.1
Node version: 18.17.1
VS Code Version: 1.106.1
Azure Open AI GPT Model: gpt-4o-mini

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions