Dopingus / cert-manager-webhook-dynu

Unofficial cert-manager webhook for dynu
Apache License 2.0
7 stars 7 forks source link

server not able to handle the request #25

Closed supermario18b closed 10 months ago

supermario18b commented 10 months ago

Hi, thanks for the webhook, I noticed that when I try to get new certificates, I get this error:

Error presenting challenge: the server is currently unable to handle the request (post dynu.com.github.dopingus.cert-manager-webhook-dynu)

I'm sure that last week it worked. The fields "groupName" and "solverName" in the "ClusterIssuer" are set like this:

groupName: com.github.dopingus.cert-manager-webhook-dynu solverName: dynu

Should I have to change something or is it a temporary error?

Thanks in Advance,

supermario18b

rbaumgar commented 10 months ago

I could create some certificates today without any issues. How is your solver within (cluster)issuer configured?

supermario18b commented 10 months ago

Hi, thank you for the reply. Here is my clusterissuer manifest:

apiVersion: cert-manager.io/v1 kind: ClusterIssuer metadata: name: letsencrypt-dynu-mydomain spec: acme:

server: https://acme-staging-v02.api.letsencrypt.org/directory
email: myemail@not-example.com 
privateKeySecretRef:
  name: letsencrypt-secret
solvers:
  - dns01:
      cnameStrategy: Follow
      webhook:
        groupName: com.github.dopingus.cert-manager-webhook-dynu
        solverName: dynu
        config:
          secretName: dynu-secret # Adjust this in case you changed the secretName.

Sorry for the formatting, I didn't get it better.

supermario18b commented 10 months ago

The "READY" status of the clusterissuer is shown as "True".

rbaumgar commented 10 months ago

I have some more settings, eg ApiUrl:

spec:
  acme:
    email: <my-mail@domain>
    preferredChain: ''
    privateKeySecretRef:
      name: letsencrypt-clusterissuer
    server: 'https://acme-v02.api.letsencrypt.org/directory'
    solvers:
      - dns01:
          cnameStrategy: Follow
          webhook:
            config:
              apiUrl: 'https://api.dynu.com/v2'
              secretName: dynu-secret
              zoneName: <my-dynu.domain>
            groupName: com.github.dopingus.cert-manager-webhook-dynu
            solverName: dynu
supermario18b commented 10 months ago

thank your for the configuration, I tried that but I've got the same error. I uninstalled cert-manager and cert-manager-webhook-dynu and then I reinstalled them with the same configuration files and it worked. I really don't know what was the cause.

I close the issue and thanks again for the support,

supermario18b