gregtwallace / certwarden

Cert Warden is a centralized ACME Client. It provides an API for certificate consumers to fetch their individual keys and certs with API keys.
https://www.certwarden.com/
Other
233 stars 7 forks source link

Issue with config file (providers) #27

Closed mp3-10 closed 1 year ago

mp3-10 commented 1 year ago

Hello,

I used default config file (from: https://github.com/gregtwallace/legocerthub-backend/blob/master/config.default.yaml) but I have still errors like: 2023-10-10T12:03:05.508Z error app/run.go:63 failed to create app (yaml: unmarshal errors: line 49: cannot unmarshal !!seq into http01internal.Config line 54: cannot unmarshal !!seq into dns01acmesh.Config)

Both lines points - 'domains': section.

Part of my code:

  'providers':
    # If any provider is configured, the default will not be
    'http_01_internal':
      - 'domains':
          - '*'
        'port': 4060

    'dns_01_acme_sh':
      - 'domains':
          - 'XXX.XXX'
        'environment':
          - 'OVH_END_POINT=ovh-eu'
          - 'OVH_AK=XXX'
          - 'OVH_AS=XXX'
          - 'OVH_CK=XX'
        'dns_hook': 'dns_ovh'
gregtwallace commented 1 year ago

The new release I’m working on uses a different config file format which is not compatible with older versions. Use the example included in the release package or change the GitHub code you’re browsing to the Tag for the version you’re using.

mp3-10 commented 1 year ago

@gregtwallace my fault. Now is ok, thx! But could you add openssl into docker file?

Without: ./scripts/acme.sh/temp/acme.sh_dns_ovh.sh: line 1006: openssl: command not found

On my docker I installed and now works well :)

gregtwallace commented 1 year ago

I will add that, thanks for the heads up.