pragkent / alidns-webhook

Cert manager acme dns01 webhook provider for alidns
183 stars 79 forks source link

alidns SDK ErrorCode: InvalidAccessKeyId.NotFound #5

Closed xcode03 closed 4 years ago

xcode03 commented 4 years ago

Hello,I have a question to ask you Error:

E0323 17:49:13.715484       1 solver.go:56] Get hosted zone test.cn. error: SDK.ServerError
ErrorCode: InvalidAccessKeyId.NotFound
Recommend: https://error-center.aliyun.com/status/search?Keyword=InvalidAccessKeyId.NotFound&source=PopGw
RequestId: ****
Message: Specified access key is not found.
I0323 17:49:13.776598       1 solver.go:47] Presenting txt record: _acme-challenge.cert-manager.test.cn. test.cn.
I0323 17:49:13.776669       1 solver.go:76] Decoded config: { {{alidns-secret} access-key} {{alidns-secret} secret-key}}

But I confirm that my ak key pair is valid and can be used on acme

Cluster:

apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
  name: letsencrypt-staging
spec:
  acme:
    # Change to your letsencrypt email
    email: yuyue02@megvii.com
    server: https://acme-staging-v02.api.letsencrypt.org/directory
    privateKeySecretRef:
      name: letsencrypt-staging-account-key
    solvers:
    - dns01:
        webhook:
          groupName: acme.yourcompany.com
          solverName: alidns
          config:
            region: ""
            accessKeySecretRef:
              name: alidns-secret
              key: access-key
            secretKeySecretRef:
              name: alidns-secret
              key: secret-key

Ca:

apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
  name: example-tls
spec:
  secretName: example-com-tls
  commonName: cert-manager.test.cn
  dnsNames:
  - cert-manager.test.cn
  issuerRef:
    name: letsencrypt-staging
    kind: ClusterIssuer
xcode03 commented 4 years ago

my falut

qianghudd01 commented 4 years ago

@xcode03 请问最后怎样解决的?

wangycc commented 4 years ago

@xcode03 请问最后怎样解决的?

一般都是包含空格或者\n换行符导致,可echo -n "yoursecret" | base64