• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

cannot generate a certificate

Scheduled Pinned Locked Moved ACME
3 Posts 2 Posters 597 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    nevolex
    last edited by nevolex Feb 4, 2023, 8:19 PM Feb 4, 2023, 8:16 PM

    hi guys,

    may somebody please assist, cannot generate a ssl certificate using Cloudflare api :(

    Message in the dialog: 
    
    [Sun Feb  5 09:11:32 NZDT 2023] Using CA: https://acme-staging-v02.api.letsencrypt.org/directory
    [Sun Feb  5 09:11:32 NZDT 2023] Single domain='mydomain.example'
    [Sun Feb  5 09:11:32 NZDT 2023] Getting domain auth token for each domain
    [Sun Feb  5 09:11:34 NZDT 2023] Getting webroot for domain='mydomain.example'
    [Sun Feb  5 09:11:34 NZDT 2023] Adding txt value: xxxxxxxxxxxxxxxxxxxxxxxxx_URQhX0zP-PrmnLM for domain:  _acme-challenge.mydomain.example
    [Sun Feb  5 09:11:35 NZDT 2023] invalid domain
    [Sun Feb  5 09:11:35 NZDT 2023] Error add txt for domain:_acme-challenge.mydomain.example
    [Sun Feb  5 09:11:35 NZDT 2023] Please check log file for more details: /tmp/acme/remote-pfsense-mydomain.example/acme_issuecert.log
    
    
    
    in the logs:
    
    [Sat Feb  4 22:55:20 NZDT 2023] _CURL='curl --silent --dump-header /tmp/acme/remote-pfsense-mydomain.example//http.header  -L '
    [Sat Feb  4 22:55:21 NZDT 2023] ret='0'
    [Sat Feb  4 22:55:21 NZDT 2023] response='{"success":false,"errors":[{"code":6003,"message":"Invalid request headers","error_chain":[{"code":6111,"message":"Invalid format for Authorization header"}]}],"messages":[],"result":null}'
    [Sat Feb  4 22:55:21 NZDT 2023] invalid domain
    [Sat Feb  4 22:55:21 NZDT 2023] Error add txt for domain:_acme-challenge.mydomain.example
    [Sat Feb  4 22:55:21 NZDT 2023] _on_issue_err
    [Sat Feb  4 22:55:21 NZDT 2023] Please check log file for more details: /tmp/acme/remote-pfsense-mydomain.example/acme_issuecert.log
    [Sat Feb  4 22:55:21 NZDT 2023] _chk_vlist='*.mydomain.example#u9CduNpAT8m9bd0aIOeWSj2Q2VkkDrxRQic9bJ0dLsM.h9lVFzs6Auj9eC1hevR9j4j-7y1aeIsOohKKKyhFD8k#https://acme-staging-v02.api.letsencrypt.org/acme/chall-v3/5231099963/tsbqVw#dns-01#dns_cf,mydomain.example#pnv-1J_xxxxxxxxxxxxxx_Uxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxyhFD8k#https://acme-staging-v02.api.letsencrypt.org/acme/chall-v3/5231099973/QXMfKQ#dns-01#dns_cf,'
    [Sat Feb  4 22:55:21 NZDT 2023] start to deactivate authz
    [Sat Feb  4 22:55:21 NZDT 2023] Trigger domain validation.
    [Sat Feb  4 22:55:21 NZDT 2023] _t_url='https://acme-staging-v02.api.letsencrypt.org/acme/chall-v3/5231099963/tsbqVw'
    [Sat Feb  4 22:55:21 NZDT 2023] _t_key_authz='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
    [Sat Feb  4 22:55:21 NZDT 2023] _t_vtype
    [Sat Feb  4 22:55:21 NZDT 2023] url='https://acme-staging-v02.api.letsencrypt.org/acme/chall-v3/5231099963/tsbqVw'
    [Sat Feb  4 22:55:21 NZDT 2023] payload='{}'
    [Sat Feb  4 22:55:21 NZDT 2023] Use cached jwk for file: /tmp/acme/remote-pfsense-mydomain.example//ca/acme-staging-v02.api.letsencrypt.org/directory/account.key
    [Sat Feb  4 22:55:21 NZDT 2023] base64 single line.
    [Sat Feb  4 22:55:21 NZDT 2023] payload64='e30'
    [Sat Feb  4 22:55:21 NZDT 2023] _request_retry_times='1'
    
    
    
    
    thank you 
    
    
    J 1 Reply Last reply Feb 4, 2023, 8:33 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @nevolex
      last edited by Feb 4, 2023, 8:33 PM

      @nevolex said in cannot generate a certificate:

      invalid domain

      Going to stated the obvious here - but mydomain.example is never going to work ;) Assuming you obfuscated that, but its saying invalid..

      I use cloudflare to get certs via acme.. Did you setup your permissions on your domain, did you use the correct api token, etc..

      cloudflare.jpg

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      N 1 Reply Last reply Feb 4, 2023, 10:02 PM Reply Quote 1
      • N
        nevolex @johnpoz
        last edited by Feb 4, 2023, 10:02 PM

        @johnpoz thank you for your quick reply, the issue was on myside, was using the wrong TOKEN code :)

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received