> ## Documentation Index
> Fetch the complete documentation index at: https://ngrok.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create

> Upload a new Certificate Authority




## OpenAPI

````yaml https://raw.githubusercontent.com/ngrok/ngrok-openapi/refs/heads/main/ngrok.yaml post /certificate_authorities
openapi: 3.0.0
info:
  title: ngrok OpenAPI
  version: 1.0.0
servers:
  - url: https://api.ngrok.com
security:
  - authentication: []
paths:
  /certificate_authorities:
    post:
      tags:
        - CertificateAuthorities
      summary: Create
      description: |
        Upload a new Certificate Authority
      operationId: CertificateAuthoritiesCreate
      parameters:
        - $ref: '#/components/parameters/ngrokVersion'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CertificateAuthorityCreate'
      responses:
        '201':
          description: |
            Upload a new Certificate Authority
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CertificateAuthority'
components:
  parameters:
    ngrokVersion:
      name: ngrok-version
      in: header
      required: true
      schema:
        type: integer
        default: 2
  schemas:
    CertificateAuthorityCreate:
      type: object
      required:
        - ca_pem
      properties:
        description:
          description: >
            human-readable description of this Certificate Authority. optional,
            max 255 bytes.
          type: string
        metadata:
          description: >
            arbitrary user-defined machine-readable data of this Certificate
            Authority. optional, max 4096 bytes.
          type: string
        ca_pem:
          description: |
            raw PEM of the Certificate Authority
          type: string
    CertificateAuthority:
      type: object
      properties:
        id:
          description: |
            unique identifier for this Certificate Authority
          type: string
        uri:
          description: |
            URI of the Certificate Authority API resource
          type: string
        created_at:
          description: >
            timestamp when the Certificate Authority was created, RFC 3339
            format
          type: string
        description:
          description: >
            human-readable description of this Certificate Authority. optional,
            max 255 bytes.
          type: string
        metadata:
          description: >
            arbitrary user-defined machine-readable data of this Certificate
            Authority. optional, max 4096 bytes.
          type: string
        ca_pem:
          description: |
            raw PEM of the Certificate Authority
          type: string
        subject_common_name:
          description: |
            subject common name of the Certificate Authority
          type: string
        not_before:
          description: >
            timestamp when this Certificate Authority becomes valid, RFC 3339
            format
          type: string
        not_after:
          description: >
            timestamp when this Certificate Authority becomes invalid, RFC 3339
            format
          type: string
        key_usages:
          description: >
            set of actions the private key of this Certificate Authority can be
            used for
          type: array
          items:
            type: string
        extended_key_usages:
          description: >
            extended set of actions the private key of this Certificate
            Authority can be used for
          type: array
          items:
            type: string
  securitySchemes:
    authentication:
      type: http
      scheme: bearer

````