@accelerated-software-development/caddy-api-client - v0.2.2
    Preparing search index...

    Function rotateCertificate

    • Rotate TLS certificate for a domain Adds new certificate while keeping the old one temporarily for zero-downtime rotation

      Parameters

      • domain: string

        Domain name

      • newCertFile: string

        Path to new certificate file

      • newKeyFile: string

        Path to new private key file

      • OptionaladminUrl: string

        Caddy Admin API URL

      Returns Promise<string>

      Certificate tag of the newly added certificate