manage_certificates
Manage SSL/TLS certificates on Palo Alto firewalls to maintain secure network communications and ensure proper authentication for network services.
Instructions
Manage certificates on the Palo Alto firewall
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:208-235 (handler)Handler for the 'manage_certificates' tool: sends a GET request to the Palo Alto firewall's /Device/Certificates API endpoint using axios, and returns the JSON response as text content.case 'manage_certificates': { try { const response = await axios.get( `${API_BASE_URL}/Device/Certificates`, { headers: { 'X-PAN-KEY': API_KEY, 'Accept': 'application/json' } } ); return { content: [ { type: 'text', text: JSON.stringify(response.data, null, 2), }, ], }; } catch (error) { const axiosError = error as AxiosError; throw new McpError( ErrorCode.InternalError, `Palo Alto API error: ${axiosError.message}` ); } }
- src/index.ts:66-73 (registration)Registers the 'manage_certificates' tool in the list of tools returned by ListToolsRequestSchema, including name, description, and input schema (empty object).{ name: 'manage_certificates', description: 'Manage certificates on the Palo Alto firewall', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:69-72 (schema)Defines the input schema for the 'manage_certificates' tool as an empty object (no parameters required).inputSchema: { type: 'object', properties: {}, },