---
updatedAt: 2025-04-29T20:31:45.000Z
agentTools:
  projectIndex: https://docs.border0.com/llms.txt
---

# Generate a JWT for CA request on socket's DNS name

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "https://border0.com",
    "title": "Border0 API",
    "contact": {},
    "version": "1.0"
  },
  "paths": {
    "/mtls-ca/socket/{socket_dnsname}/auth": {
      "get": {
        "security": [
          {
            "Border0_Token": []
          }
        ],
        "summary": "Generate a JWT for CA request on socket's DNS name",
        "parameters": [
          {
            "description": "Socket DNS name",
            "name": "socket_dnsname",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Redirect URL path",
            "name": "redirectpath",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Redirect URL port",
            "name": "port",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Email address from OIDC claims",
            "name": "X-Auth-Email",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Subject identifier from OIDC claims",
            "name": "X-Auth-Subject",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Name from OIDC claims",
            "name": "X-Auth-Name",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Profile picture from OIDC claims",
            "name": "X-Auth-Picture",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Nickname from OIDC claims",
            "name": "X-Auth-Nickname",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "302": {
            "description": "Redirect URL",
            "headers": {
              "Location": {
                "description": "http://localhost:{port}{redirectpath}?token={token}",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1.BaseErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1.BaseErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1.BaseErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Border0_Token": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    },
    "schemas": {
      "v1.BaseErrorResponse": {
        "type": "object",
        "properties": {
          "error_message": {
            "type": "string"
          },
          "status_code": {
            "type": "integer"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```