ssl_switch_ca
Switch to a specified Certificate Authority on the Web Proxy MCP Server to manage SSL certificates for automated traffic monitoring and analysis.
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)MCP tool handler for ssl_switch_ca: validates args, calls sslManager.switchCA, returns formatted success message with new CA details.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}` }] };
- Tool schema definition: requires caName string parameter.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 SSLManager.switchCA implementation: updates current CA, verifies existence, loads info, returns new details.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 }; }