Skip to content

DNS API env variables are not per domain so you cant use different accounts for different domains #799

Open
@gitwer

Description

@gitwer

DNS API env variables are not able to be set per domain, meaning you can only use a single account for all domains. IE: you can't have 2 Cloudflare accounts one for example.com and a different account for other.com

Steps to reproduce

  1. set variables for Cloudflare:
    export CF_Key="sdfdxxxxxxxosdfgje"
    export CF_Email="email@example.com"

  2. issue a cert for example.com
    acme.sh --issue -d example.com --dns dns_cf

  3. install cert
    acme.sh --install-cert -d example.com (etc etc etc)

  4. set variables for DIFFERENT Cloudflare account:
    export CF_Key="wgdsyyyyyyyyyykghtysd"
    export CF_Email="email@other.com"

  5. issue a cert for other.com
    acme.sh --issue -d other.com --dns dns_cf

  6. install cert
    acme.sh --install-cert -d other.com (etc etc etc)

  7. the .acme.sh/account.conf file structure does not work with/allow different DNS API variables for the same DNS provider for different domains.

Can the required DNA API variables (currently saved using "_saveaccountconf") be saved to the .acme.sh/example.com/example.com.conf file instead? This would allow different domains to use different accounts.

Debug log

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions