opnsense_sys_list_certs
List all certificates in the OPNsense trust store, including refids, descriptions, and validity dates, to audit certificate status.
Instructions
List all certificates in the OPNsense trust store with their refids, descriptions, and validity dates
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/system.ts:155-158 (handler)Handler for opnsense_sys_list_certs: calls GET /trust/cert/search on the OPNsense API and returns JSON result.
case "opnsense_sys_list_certs": { const result = await client.get("/trust/cert/search"); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } - src/tools/system.ts:85-90 (registration)Tool definition registration: name 'opnsense_sys_list_certs' with description and empty inputSchema, exported in systemToolDefinitions array.
{ name: "opnsense_sys_list_certs", description: "List all certificates in the OPNsense trust store with their refids, descriptions, and validity dates", inputSchema: { type: "object" as const, properties: {} }, }, - src/index.ts:64-64 (registration)Mapping of systemToolDefinitions (including opnsense_sys_list_certs) to handleSystemTool handler in the MCP server setup.
for (const def of systemToolDefinitions) toolHandlers.set(def.name, handleSystemTool);