ssl_switch_ca
Change the Certificate Authority used by the Web Proxy MCP Server to manage SSL/TLS certificates for secure traffic monitoring.
Instructions
Switch to a different Certificate Authority
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caName | Yes | Name of the CA to switch to |
Implementation Reference
- src/tools/tool-handlers.js:107-114 (handler)The MCP tool handler for 'ssl_switch_ca' that validates input, calls SSLManager.switchCA, and returns formatted success response.case 'ssl_switch_ca': const switchResult = await this.sslManager.switchCA(args.caName); return { content: [{ type: "text", text: `š Switched to CA: ${switchResult.caName}\nš CA Directory: ${switchResult.caDir}` }] };
- JSON schema definition for the 'ssl_switch_ca' tool input validation.ssl_switch_ca: { name: "ssl_switch_ca", description: "Switch to a different Certificate Authority", inputSchema: { type: "object", properties: { caName: { type: "string", description: "Name of the CA to switch to" } }, required: ["caName"] } },
- src/ssl/ssl-manager.js:199-210 (helper)Core implementation of CA switching logic in SSLManager class: updates current CA path, verifies existence, loads metadata, and returns new configuration.async switchCA(caName) { this.currentCA = caName; this.caDir = path.join(this.caBaseDir, this.currentCA); const caExists = await this._checkCAExists(); if (!caExists) { throw new Error(`CA '${caName}' does not exist`); } await this._loadCAInfo(); return { caName, caDir: this.caDir }; }