acmesh-official / acme.sh

A pure Unix shell script implementing ACME client protocol
https://acme.sh
GNU General Public License v3.0
39.43k stars 4.98k forks source link

trying to add namecheap as another DNS service. got `Can not find dns api hook for: dns_namecheap` as error message #1778

Closed simkimsia closed 6 years ago

simkimsia commented 6 years ago

Hi there,

I added a new DNS service namecheap, see my code here https://github.com/simkimsia/acme.sh/blob/feature/add-namecheap/dnsapi/dns_namecheap.sh

My first test, I get this error message Can not find dns api hook for: dns_namecheap

When I try to run acme.sh --issue --dns dns_namecheap -d example.com -d www.example.com

I also added --debug2 but I got Unknown parameter : --debug2

Please help.

MAGICCC commented 6 years ago

The debug parameter is --debug and the level is 2 so it's --debug 2 and not --debug2

simkimsia commented 6 years ago

Okay now I have [Mon Aug 13 11:00:31 +08 2018] Unknown parameter : dns_namecheap when I tried to test my own DNS service provider

This is my command acme.sh --issue --dns --debug 2 dns_namecheap -d example.com -d www.example.com

simkimsia commented 6 years ago

Oh right, I just realised I made a boo boo.

THis is my debug log when I run acme.sh --issue --dns dns_namecheap --debug 2 -d oppoin.com -d www.oppoin.com

[Mon Aug 13 11:05:57 +08 2018] _is_idn_d='oppoin.com'
[Mon Aug 13 11:05:57 +08 2018] _idn_temp
[Mon Aug 13 11:05:57 +08 2018] _is_idn_d='www.oppoin.com'
[Mon Aug 13 11:05:57 +08 2018] _idn_temp
[Mon Aug 13 11:05:57 +08 2018] Lets find script dir.
[Mon Aug 13 11:05:57 +08 2018] _SCRIPT_='/Users/kim/.acme.sh/acme.sh'
[Mon Aug 13 11:05:57 +08 2018] _script='/Users/kim/.acme.sh/acme.sh'
[Mon Aug 13 11:05:57 +08 2018] _script_home='/Users/kim/.acme.sh'
[Mon Aug 13 11:05:57 +08 2018] Using config home:/Users/kim/.acme.sh
[Mon Aug 13 11:05:57 +08 2018] LE_WORKING_DIR='/Users/kim/.acme.sh'
https://github.com/Neilpang/acme.sh
v2.8.0
[Mon Aug 13 11:05:57 +08 2018] _main_domain='oppoin.com'
[Mon Aug 13 11:05:57 +08 2018] _alt_domains='www.oppoin.com'
[Mon Aug 13 11:05:57 +08 2018] Using config home:/Users/kim/.acme.sh
[Mon Aug 13 11:05:57 +08 2018] ACME_DIRECTORY='https://acme-v01.api.letsencrypt.org/directory'
[Mon Aug 13 11:05:57 +08 2018] _ACME_SERVER_HOST='acme-v01.api.letsencrypt.org'
[Mon Aug 13 11:05:57 +08 2018] DOMAIN_PATH='/Users/kim/.acme.sh/oppoin.com'
[Mon Aug 13 11:05:57 +08 2018] 'dns_namecheap' does not contain 'dns'
[Mon Aug 13 11:05:57 +08 2018] Using ACME_DIRECTORY: https://acme-v01.api.letsencrypt.org/directory
[Mon Aug 13 11:05:57 +08 2018] _init api for server: https://acme-v01.api.letsencrypt.org/directory
[Mon Aug 13 11:05:57 +08 2018] GET
[Mon Aug 13 11:05:57 +08 2018] url='https://acme-v01.api.letsencrypt.org/directory'
[Mon Aug 13 11:05:57 +08 2018] timeout=
[Mon Aug 13 11:05:57 +08 2018] _CURL='curl -L --silent --dump-header /Users/kim/.acme.sh/http.header  --trace-ascii /var/folders/ml/yl6xwqxj18g1xlj3gwbbx6z40000gn/T/tmp.ZiyXlbvL  -g '
[Mon Aug 13 11:05:57 +08 2018] ret='0'
[Mon Aug 13 11:05:57 +08 2018] response='{
  "jVf0rrc2S84": "https://community.letsencrypt.org/t/adding-random-entries-to-the-directory/33417",
  "key-change": "https://acme-v01.api.letsencrypt.org/acme/key-change",
  "meta": {
    "caaIdentities": [
      "letsencrypt.org"
    ],
    "terms-of-service": "https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf",
    "website": "https://letsencrypt.org"
  },
  "new-authz": "https://acme-v01.api.letsencrypt.org/acme/new-authz",
  "new-cert": "https://acme-v01.api.letsencrypt.org/acme/new-cert",
  "new-reg": "https://acme-v01.api.letsencrypt.org/acme/new-reg",
  "revoke-cert": "https://acme-v01.api.letsencrypt.org/acme/revoke-cert"
}'
[Mon Aug 13 11:05:57 +08 2018] ACME_KEY_CHANGE='https://acme-v01.api.letsencrypt.org/acme/key-change'
[Mon Aug 13 11:05:57 +08 2018] ACME_NEW_AUTHZ='https://acme-v01.api.letsencrypt.org/acme/new-authz'
[Mon Aug 13 11:05:57 +08 2018] ACME_NEW_ORDER='https://acme-v01.api.letsencrypt.org/acme/new-cert'
[Mon Aug 13 11:05:57 +08 2018] ACME_NEW_ACCOUNT='https://acme-v01.api.letsencrypt.org/acme/new-reg'
[Mon Aug 13 11:05:57 +08 2018] ACME_REVOKE_CERT='https://acme-v01.api.letsencrypt.org/acme/revoke-cert'
[Mon Aug 13 11:05:57 +08 2018] ACME_AGREEMENT='https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf'
[Mon Aug 13 11:05:57 +08 2018] ACME_NEW_NONCE
[Mon Aug 13 11:05:57 +08 2018] ACME_VERSION
[Mon Aug 13 11:05:57 +08 2018] Le_NextRenewTime
[Mon Aug 13 11:05:58 +08 2018] _on_before_issue
[Mon Aug 13 11:05:58 +08 2018] _chk_main_domain='oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] _chk_alt_domains='www.oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] 'dns_namecheap' does not contain 'no'
[Mon Aug 13 11:05:58 +08 2018] Le_LocalAddress
[Mon Aug 13 11:05:58 +08 2018] d='oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] Check for domain='oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] _currentRoot='dns_namecheap'
[Mon Aug 13 11:05:58 +08 2018] d='www.oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] Check for domain='www.oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] _currentRoot='dns_namecheap'
[Mon Aug 13 11:05:58 +08 2018] d
[Mon Aug 13 11:05:58 +08 2018] 'dns_namecheap' does not contain 'apache'
[Mon Aug 13 11:05:58 +08 2018] _saved_account_key_hash='OdRx0shdIo+ZLvXDV0BmHmQ7q1BLi5DzvwzX7LuFtz4='
[Mon Aug 13 11:05:58 +08 2018] _saved_account_key_hash is not changed, skip register account.
[Mon Aug 13 11:05:58 +08 2018] Read key length:
[Mon Aug 13 11:05:58 +08 2018] _createcsr
[Mon Aug 13 11:05:58 +08 2018] domain='oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] domainlist='www.oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] csrkey='/Users/kim/.acme.sh/oppoin.com/oppoin.com.key'
[Mon Aug 13 11:05:58 +08 2018] csr='/Users/kim/.acme.sh/oppoin.com/oppoin.com.csr'
[Mon Aug 13 11:05:58 +08 2018] csrconf='/Users/kim/.acme.sh/oppoin.com/oppoin.com.csr.conf'
[Mon Aug 13 11:05:58 +08 2018] _is_idn_d='www.oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] _idn_temp
[Mon Aug 13 11:05:58 +08 2018] domainlist='www.oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] Multi domain='DNS:oppoin.com,DNS:www.oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] _is_idn_d='oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] _idn_temp
[Mon Aug 13 11:05:58 +08 2018] _csr_cn='oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] Getting domain auth token for each domain
[Mon Aug 13 11:05:58 +08 2018] d='oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] Getting webroot for domain='oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] _w='dns_namecheap'
[Mon Aug 13 11:05:58 +08 2018] _currentRoot='dns_namecheap'
[Mon Aug 13 11:05:58 +08 2018] Getting new-authz for domain='oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] _init api for server: https://acme-v01.api.letsencrypt.org/directory
[Mon Aug 13 11:05:58 +08 2018] Try new-authz for the 0 time.
[Mon Aug 13 11:05:58 +08 2018] _is_idn_d='oppoin.com'
[Mon Aug 13 11:05:58 +08 2018] _idn_temp
[Mon Aug 13 11:05:58 +08 2018] url='https://acme-v01.api.letsencrypt.org/acme/new-authz'
[Mon Aug 13 11:05:58 +08 2018] payload='{"resource": "new-authz", "identifier": {"type": "dns", "value": "oppoin.com"}}'
[Mon Aug 13 11:05:58 +08 2018] RSA key
[Mon Aug 13 11:05:58 +08 2018] Get nonce. ACME_DIRECTORY='https://acme-v01.api.letsencrypt.org/directory'
[Mon Aug 13 11:05:58 +08 2018] GET
[Mon Aug 13 11:05:58 +08 2018] url='https://acme-v01.api.letsencrypt.org/directory'
[Mon Aug 13 11:05:58 +08 2018] timeout=
[Mon Aug 13 11:05:58 +08 2018] _CURL='curl -L --silent --dump-header /Users/kim/.acme.sh/http.header  --trace-ascii /var/folders/ml/yl6xwqxj18g1xlj3gwbbx6z40000gn/T/tmp.5cGo7AvH  -g '
[Mon Aug 13 11:05:59 +08 2018] ret='0'
[Mon Aug 13 11:05:59 +08 2018] _headers='HTTP/1.1 200 OK
Server: nginx
Content-Type: application/json
Content-Length: 658
Replay-Nonce: N1fyH120n2q0_ysznDx2tCcoujQrhX1UjJ397upUS4Y
X-Frame-Options: DENY
Strict-Transport-Security: max-age=604800
Expires: Mon, 13 Aug 2018 03:05:59 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Mon, 13 Aug 2018 03:05:59 GMT
Connection: keep-alive
'
[Mon Aug 13 11:05:59 +08 2018] _CACHED_NONCE='N1fyH120n2q0_ysznDx2tCcoujQrhX1UjJ397upUS4Y'
[Mon Aug 13 11:05:59 +08 2018] nonce='N1fyH120n2q0_ysznDx2tCcoujQrhX1UjJ397upUS4Y'
[Mon Aug 13 11:05:59 +08 2018] POST
[Mon Aug 13 11:05:59 +08 2018] _post_url='https://acme-v01.api.letsencrypt.org/acme/new-authz'
[Mon Aug 13 11:05:59 +08 2018] body='{"header": {"alg": "RS256", "jwk": {"e": "AQAB", "kty": "RSA", "n": "3JNLi4pu03ssDeN7CdbULN05zTfitsjAvwY7xH3MvM8kQjYTiq2uvR6Lkxn2WvIKcFXXxl7Vgy6d4egFHwxfdjEbawJq8h27cXV4PzIYiEy9Cd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2X9WjjN0WzQITZRCzj83_swRlxAU6aRUd9CLfe6Nowx-nGzzwfwQ7XqwIOZD3wLFeaEIUtwFt9lvuXsJQc1hAh2uFvn6S7_7Nggd-mjx8onhR76CHWzACVpC7f5HwEQSinfYZj0zbHTTcSAkZ_fCfCBF1uM2wub2sCsbaZx6C_6NRFlrCrHnPk7JAl_fUX8A-4RkoazLPgK6Kpa3gNfG-TOQnMKhth8z1og_vUIu3y15DDV8kAqv-TCNqFJNQBEvTFD1CHVBrpDm5ONVfISMWYVSSkNbYhhH5H7MueyM_7mmmoiCF_1Dbn4V9573RuegBaxCRO6TdfR5g"}'
[Mon Aug 13 11:05:59 +08 2018] _postContentType
[Mon Aug 13 11:05:59 +08 2018] _CURL='curl -L --silent --dump-header /Users/kim/.acme.sh/http.header  --trace-ascii /var/folders/ml/yl6xwqxj18g1xlj3gwbbx6z40000gn/T/tmp.X46kPmAM  -g '
[Mon Aug 13 11:06:00 +08 2018] _ret='0'
[Mon Aug 13 11:06:00 +08 2018] original='{
  "identifier": {
    "type": "dns",
    "value": "oppoin.com"
  },
  "status": "pending",
  "expires": "2018-08-19T06:23:47Z",
  "challenges": [
    {
      "type": "http-01",
      "status": "pending",
      "uri": "https://acme-v01.api.letsencrypt.org/acme/challenge/oUqVKfR9YL8GKLa9Ou4ml7bmIoEAv8T6iQZPk5xiiZw/6402264189",
      "token": "8mmq9PYH9q33T-VBK3qVxfjXyNSQJdXs_hUTltvCw8U"
    },
    {
      "type": "tls-alpn-01",
      "status": "pending",
      "uri": "https://acme-v01.api.letsencrypt.org/acme/challenge/oUqVKfR9YL8GKLa9Ou4ml7bmIoEAv8T6iQZPk5xiiZw/6402264190",
      "token": "mdkOEsSGCCXD7Qvz09CPSGbypF9y0X9yVg68NQqkmBc"
    },
    {
      "type": "dns-01",
      "status": "pending",
      "uri": "https://acme-v01.api.letsencrypt.org/acme/challenge/oUqVKfR9YL8GKLa9Ou4ml7bmIoEAv8T6iQZPk5xiiZw/6402264191",
      "token": "9V75dQLEsAYoCh_NO_WhjSMEYuMNjGIEVE3vH0Vq31Y"
    }
  ],
  "combinations": [
    [
      1
    ],
    [
      2
    ],
    [
      0
    ]
  ]
}'
[Mon Aug 13 11:06:00 +08 2018] responseHeaders='HTTP/1.1 100 Continue
Expires: Mon, 13 Aug 2018 03:06:00 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache

HTTP/1.1 201 Created
Server: nginx
Content-Type: application/json
Content-Length: 989
Boulder-Requester: 40080344
Link: <https://acme-v01.api.letsencrypt.org/acme/new-cert>;rel="next"
Location: https://acme-v01.api.letsencrypt.org/acme/authz/oUqVKfR9YL8GKLa9Ou4ml7bmIoEAv8T6iQZPk5xiiZw
Replay-Nonce: DYjQM1Dn993NVnUeopMEjb_Nvb9LaF8NnMrll1E2wy8
X-Frame-Options: DENY
Strict-Transport-Security: max-age=604800
Expires: Mon, 13 Aug 2018 03:06:00 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Mon, 13 Aug 2018 03:06:00 GMT
Connection: keep-alive
'
[Mon Aug 13 11:06:00 +08 2018] response='{"identifier":{"type":"dns","value":"oppoin.com"},"status":"pending","expires":"2018-08-19T06:23:47Z","challenges":[{"type":"http-01","status":"pending","uri":"https://acme-v01.api.letsencrypt.org/acme/challenge/oUqVKfR9YL8GKLa9Ou4ml7bmIoEAv8T6iQZPk5xiiZw/6402264189","token":"8mmq9PYH9q33T-VBK3qVxfjXyNSQJdXs_hUTltvCw8U"},{"type":"tls-alpn-01","status":"pending","uri":"https://acme-v01.api.letsencrypt.org/acme/challenge/oUqVKfR9YL8GKLa9Ou4ml7bmIoEAv8T6iQZPk5xiiZw/6402264190","token":"mdkOEsSGCCXD7Qvz09CPSGbypF9y0X9yVg68NQqkmBc"},{"type":"dns-01","status":"pending","uri":"https://acme-v01.api.letsencrypt.org/acme/challenge/oUqVKfR9YL8GKLa9Ou4ml7bmIoEAv8T6iQZPk5xiiZw/6402264191","token":"9V75dQLEsAYoCh_NO_WhjSMEYuMNjGIEVE3vH0Vq31Y"}],"combinations":[[1],[2],[0]]}'
[Mon Aug 13 11:06:00 +08 2018] code='201'
[Mon Aug 13 11:06:00 +08 2018] The new-authz request is ok.
[Mon Aug 13 11:06:00 +08 2018] entry='"type":"dns-01","status":"pending","uri":"https://acme-v01.api.letsencrypt.org/acme/challenge/oUqVKfR9YL8GKLa9Ou4ml7bmIoEAv8T6iQZPk5xiiZw/6402264191","token":"9V75dQLEsAYoCh_NO_WhjSMEYuMNjGIEVE3vH0Vq31Y"'
[Mon Aug 13 11:06:00 +08 2018] token='9V75dQLEsAYoCh_NO_WhjSMEYuMNjGIEVE3vH0Vq31Y'
[Mon Aug 13 11:06:00 +08 2018] uri='https://acme-v01.api.letsencrypt.org/acme/challenge/oUqVKfR9YL8GKLa9Ou4ml7bmIoEAv8T6iQZPk5xiiZw/6402264191'
[Mon Aug 13 11:06:00 +08 2018] keyauthorization='9V75dQLEsAYoCh_NO_WhjSMEYuMNjGIEVE3vH0Vq31Y.awlzk3M5XFWcG6ats6jS0cHhTqw21VvwZQuAt-dWwi8'
[Mon Aug 13 11:06:00 +08 2018] dvlist='oppoin.com#9V75dQLEsAYoCh_NO_WhjSMEYuMNjGIEVE3vH0Vq31Y.awlzk3M5XFWcG6ats6jS0cHhTqw21VvwZQuAt-dWwi8#https://acme-v01.api.letsencrypt.org/acme/challenge/oUqVKfR9YL8GKLa9Ou4ml7bmIoEAv8T6iQZPk5xiiZw/6402264191#dns-01#dns_namecheap'
[Mon Aug 13 11:06:00 +08 2018] d='www.oppoin.com'
[Mon Aug 13 11:06:00 +08 2018] Getting webroot for domain='www.oppoin.com'
[Mon Aug 13 11:06:00 +08 2018] _w='dns_namecheap'
[Mon Aug 13 11:06:00 +08 2018] _currentRoot='dns_namecheap'
[Mon Aug 13 11:06:00 +08 2018] Getting new-authz for domain='www.oppoin.com'
[Mon Aug 13 11:06:00 +08 2018] _init api for server: https://acme-v01.api.letsencrypt.org/directory
[Mon Aug 13 11:06:00 +08 2018] Try new-authz for the 0 time.
[Mon Aug 13 11:06:00 +08 2018] _is_idn_d='www.oppoin.com'
[Mon Aug 13 11:06:00 +08 2018] _idn_temp
[Mon Aug 13 11:06:00 +08 2018] url='https://acme-v01.api.letsencrypt.org/acme/new-authz'
[Mon Aug 13 11:06:00 +08 2018] payload='{"resource": "new-authz", "identifier": {"type": "dns", "value": "www.oppoin.com"}}'
[Mon Aug 13 11:06:00 +08 2018] Use cached jwk for file: /Users/kim/.acme.sh/ca/acme-v01.api.letsencrypt.org/account.key
[Mon Aug 13 11:06:00 +08 2018] Use _CACHED_NONCE='DYjQM1Dn993NVnUeopMEjb_Nvb9LaF8NnMrll1E2wy8'
[Mon Aug 13 11:06:00 +08 2018] nonce='DYjQM1Dn993NVnUeopMEjb_Nvb9LaF8NnMrll1E2wy8'
[Mon Aug 13 11:06:00 +08 2018] POST
[Mon Aug 13 11:06:00 +08 2018] _post_url='https://acme-v01.api.letsencrypt.org/acme/new-authz'
[Mon Aug 13 11:06:00 +08 2018] body='{"header": {"alg": "RS256", "jwk": {"e": "AQAB", "kty": "RSA", "n": "3JNLi4pu03ssDeN7CdbULN05zTfitsjAvwY7xH3MvM8kQjYTiq2uvR6Lkxn2WvIKcFXXxl7Vgy6d4egFHwxfdjEbawJq8h27cXV4PzIYiEy9CdV81YQN0MPHkSHNN4-qICxSuxUTQcH0_udesD4hBrQNIjY-j2YcDHiiCpeLKJ2qXXZbjhzDh_aPKBPF2yAyXNDOVyuWka9XMcXbXcRhVZ26r9vdrDJO7OTgWN8pcstfJn9eEr_W8i8f56NgvkOqID2pNcSdrXJYWOhaoDxIH8PgA4wKi780NNsGE3YUn-5YgkARoHLKnM7YRe2gtuH3eCsGE3-PGlfWLMRdhOIkKQ"}}, "protected": "eyJub25jZSI6ICJEWWpRTTFEbjk5M05WblVlb3BNRWpiX052YjlMYUY4Tm5NcmxsMUUyd3k4IiwgInVybCI6ICJodHRwczovL2FjbWUtdjAxLmFwaS5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+08 2018] _postContentType
[Mon Aug 13 11:06:00 +08 2018] _CURL='curl -L --silent --dump-header /Users/kim/.acme.sh/http.header  --trace-ascii /var/folders/ml/yl6xwqxj18g1xlj3gwbbx6z40000gn/T/tmp.hRSwoUMV  -g '
[Mon Aug 13 11:06:01 +08 2018] _ret='0'
[Mon Aug 13 11:06:01 +08 2018] original='{
  "identifier": {
    "type": "dns",
    "value": "www.oppoin.com"
  },
  "status": "pending",
  "expires": "2018-08-19T06:23:48Z",
  "challenges": [
    {
      "type": "tls-alpn-01",
      "status": "pending",
      "uri": "https://acme-v01.api.letsencrypt.org/acme/challenge/qj1fsEHSI_s6xfxovNGqxLTAUAt1HDYx2uZW4XdoKx4/6402264386",
      "token": "ygg3OpAXGkgkyvHusYeE2Hj45CmYRWlUtoZM7uJkVFU"
    },
    {
      "type": "http-01",
      "status": "pending",
      "uri": "https://acme-v01.api.letsencrypt.org/acme/challenge/qj1fsEHSI_s6xfxovNGqxLTAUAt1HDYx2uZW4XdoKx4/6402264387",
      "token": "Nxvygd1EKihwo-iaYI2t2g_EQMPOHb0DBnOlCZ0D1qw"
    },
    {
      "type": "dns-01",
      "status": "pending",
      "uri": "https://acme-v01.api.letsencrypt.org/acme/challenge/qj1fsEHSI_s6xfxovNGqxLTAUAt1HDYx2uZW4XdoKx4/6402264388",
      "token": "SHTiOmcGI0iPL_QDoCB7P02N8IL79sBXhXzaJt_A7CE"
    }
  ],
  "combinations": [
    [
      0
    ],
    [
      2
    ],
    [
      1
    ]
  ]
}'
[Mon Aug 13 11:06:01 +08 2018] responseHeaders='HTTP/1.1 100 Continue
Expires: Mon, 13 Aug 2018 03:06:01 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache

HTTP/1.1 201 Created
Server: nginx
Content-Type: application/json
Content-Length: 993
Boulder-Requester: 40080344
Link: <https://acme-v01.api.letsencrypt.org/acme/new-cert>;rel="next"
Location: https://acme-v01.api.letsencrypt.org/acme/authz/qj1fsEHSI_s6xfxovNGqxLTAUAt1HDYx2uZW4XdoKx4
Replay-Nonce: -OAkLW9YL2erhpfCLJmdXGagBRLk2YOVj0cQI1X8Tnk
X-Frame-Options: DENY
Strict-Transport-Security: max-age=604800
Expires: Mon, 13 Aug 2018 03:06:01 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Mon, 13 Aug 2018 03:06:01 GMT
Connection: keep-alive
'
[Mon Aug 13 11:06:01 +08 2018] response='{"identifier":{"type":"dns","value":"www.oppoin.com"},"status":"pending","expires":"2018-08-19T06:23:48Z","challenges":[{"type":"tls-alpn-01","status":"pending","uri":"https://acme-v01.api.letsencrypt.org/acme/challenge/qj1fsEHSI_s6xfxovNGqxLTAUAt1HDYx2uZW4XdoKx4/6402264386","token":"ygg3OpAXGkgkyvHusYeE2Hj45CmYRWlUtoZM7uJkVFU"},{"type":"http-01","status":"pending","uri":"https://acme-v01.api.letsencrypt.org/acme/challenge/qj1fsEHSI_s6xfxovNGqxLTAUAt1HDYx2uZW4XdoKx4/6402264387","token":"Nxvygd1EKihwo-iaYI2t2g_EQMPOHb0DBnOlCZ0D1qw"},{"type":"dns-01","status":"pending","uri":"https://acme-v01.api.letsencrypt.org/acme/challenge/qj1fsEHSI_s6xfxovNGqxLTAUAt1HDYx2uZW4XdoKx4/6402264388","token":"SHTiOmcGI0iPL_QDoCB7P02N8IL79sBXhXzaJt_A7CE"}],"combinations":[[0],[2],[1]]}'
[Mon Aug 13 11:06:01 +08 2018] code='201'
[Mon Aug 13 11:06:01 +08 2018] The new-authz request is ok.
[Mon Aug 13 11:06:01 +08 2018] entry='"type":"dns-01","status":"pending","uri":"https://acme-v01.api.letsencrypt.org/acme/challenge/qj1fsEHSI_s6xfxovNGqxLTAUAt1HDYx2uZW4XdoKx4/6402264388","token":"SHTiOmcGI0iPL_QDoCB7P02N8IL79sBXhXzaJt_A7CE"'
[Mon Aug 13 11:06:01 +08 2018] token='SHTiOmcGI0iPL_QDoCB7P02N8IL79sBXhXzaJt_A7CE'
[Mon Aug 13 11:06:01 +08 2018] uri='https://acme-v01.api.letsencrypt.org/acme/challenge/qj1fsEHSI_s6xfxovNGqxLTAUAt1HDYx2uZW4XdoKx4/6402264388'
[Mon Aug 13 11:06:01 +08 2018] keyauthorization='SHTiOmcGI0iPL_QDoCB7P02N8IL79sBXhXzaJt_A7CE.awlzk3M5XFWcG6ats6jS0cHhTqw21VvwZQuAt-dWwi8'
[Mon Aug 13 11:06:01 +08 2018] dvlist='www.oppoin.com#SHTiOmcGI0iPL_QDoCB7P02N8IL79sBXhXzaJt_A7CE.awlzk3M5XFWcG6ats6jS0cHhTqw21VvwZQuAt-dWwi8#https://acme-v01.api.letsencrypt.org/acme/challenge/qj1fsEHSI_s6xfxovNGqxLTAUAt1HDYx2uZW4XdoKx4/6402264388#dns-01#dns_namecheap'
[Mon Aug 13 11:06:01 +08 2018] d
[Mon Aug 13 11:06:01 +08 2018] vlist='oppoin.com#9V75dQLEsAYoCh_NO_WhjSMEYuMNjGIEVE3vH0Vq31Y.awlzk3M5XFWcG6ats6jS0cHhTqw21VvwZQuAt-dWwi8#https://acme-v01.api.letsencrypt.org/acme/challenge/oUqVKfR9YL8GKLa9Ou4ml7bmIoEAv8T6iQZPk5xiiZw/6402264191#dns-01#dns_namecheap,www.oppoin.com#SHTiOmcGI0iPL_QDoCB7P02N8IL79sBXhXzaJt_A7CE.awlzk3M5XFWcG6ats6jS0cHhTqw21VvwZQuAt-dWwi8#https://acme-v01.api.letsencrypt.org/acme/challenge/qj1fsEHSI_s6xfxovNGqxLTAUAt1HDYx2uZW4XdoKx4/6402264388#dns-01#dns_namecheap,'
[Mon Aug 13 11:06:01 +08 2018] d='oppoin.com'
[Mon Aug 13 11:06:01 +08 2018] _d_alias
[Mon Aug 13 11:06:01 +08 2018] txtdomain='_acme-challenge.oppoin.com'
[Mon Aug 13 11:06:01 +08 2018] txt='B0Q--cpIKtxcCxDPQlP8d5MzyYuASMNsdRwI4Scjsv4'
[Mon Aug 13 11:06:01 +08 2018] d_api
[Mon Aug 13 11:06:01 +08 2018] Can not find dns api hook for: dns_namecheap
[Mon Aug 13 11:06:01 +08 2018] You need to add the txt record manually.
[Mon Aug 13 11:06:01 +08 2018] Add the following TXT record:
[Mon Aug 13 11:06:02 +08 2018] Domain: '_acme-challenge.oppoin.com'
[Mon Aug 13 11:06:02 +08 2018] TXT value: 'B0Q--cpIKtxcCxDPQlP8d5MzyYuASMNsdRwI4Scjsv4'
[Mon Aug 13 11:06:02 +08 2018] Please be aware that you prepend _acme-challenge. before your domain
[Mon Aug 13 11:06:02 +08 2018] so the resulting subdomain will be: _acme-challenge.oppoin.com
[Mon Aug 13 11:06:02 +08 2018] d='www.oppoin.com'
[Mon Aug 13 11:06:02 +08 2018] _d_alias
[Mon Aug 13 11:06:02 +08 2018] txtdomain='_acme-challenge.www.oppoin.com'
[Mon Aug 13 11:06:02 +08 2018] txt='qpD0RrxpK5HhO3L5YbP8fXXU2gCxHg-dO9LSK22AJiw'
[Mon Aug 13 11:06:02 +08 2018] d_api
[Mon Aug 13 11:06:02 +08 2018] Can not find dns api hook for: dns_namecheap
[Mon Aug 13 11:06:02 +08 2018] You need to add the txt record manually.
[Mon Aug 13 11:06:02 +08 2018] Add the following TXT record:
[Mon Aug 13 11:06:02 +08 2018] Domain: '_acme-challenge.www.oppoin.com'
[Mon Aug 13 11:06:02 +08 2018] TXT value: 'qpD0RrxpK5HhO3L5YbP8fXXU2gCxHg-dO9LSK22AJiw'
[Mon Aug 13 11:06:02 +08 2018] Please be aware that you prepend _acme-challenge. before your domain
[Mon Aug 13 11:06:02 +08 2018] so the resulting subdomain will be: _acme-challenge.www.oppoin.com
[Mon Aug 13 11:06:02 +08 2018] Dns record not added yet, so, save to /Users/kim/.acme.sh/oppoin.com/oppoin.com.conf and exit.
[Mon Aug 13 11:06:02 +08 2018] Please add the TXT records to the domains, and re-run with --renew.
[Mon Aug 13 11:06:02 +08 2018] pid
[Mon Aug 13 11:06:02 +08 2018] No need to restore nginx, skip.
[Mon Aug 13 11:06:02 +08 2018] _clearupdns
[Mon Aug 13 11:06:02 +08 2018] skip dns.
[Mon Aug 13 11:06:02 +08 2018] _on_issue_err
[Mon Aug 13 11:06:02 +08 2018] Please add '--debug' or '--log' to check more details.
[Mon Aug 13 11:06:02 +08 2018] See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh
[Mon Aug 13 11:06:02 +08 2018] _chk_vlist
[Mon Aug 13 11:06:02 +08 2018] socat doesn't exists.
[Mon Aug 13 11:06:02 +08 2018] Diagnosis versions:
openssl:openssl
LibreSSL 2.2.7
apache:
apache doesn't exists.
nginx:
nginx doesn't exists.
socat:
simkimsia commented 6 years ago

okay i got past my issue by running ./acme.sh ... at the root folder.

twhb commented 5 years ago

Commenting for anybody else who ends up here: the above solution didn't work for me. The problem was that acme.sh was installed incorrectly, the fix was to uninstalled it then reinstall via the README's curl https://get.acme.sh | sh.