-w的参数/home/wwwroot/example.com、/home/username/public_html、/var/www/html是您托管网站文件的 Web 根文件夹,你必须有可写权限,acme.sh会在网站根目录下创建.well-known目录,在其中生成验证文件,以此验证你是网站拥有者。
首先,我们需要到阿里云申请账户的密钥对,具体链接:https://ram.console.aliyun.com/manage/ak,申请成功后我们会得到AccessKey ID 和 AccessKey Secret,记录下来方便下边申请证书使用,如果后边成功申请完证书后,密钥对会记录在~/.acme.sh/account.conf文件中,方便后边cron自动续签证书。
[Fri 11 Nov 2022 10:40:31 PM CST] Using CA:https://acme.zerossl.com/v2/DV90[Fri 11 Nov 2022 10:40:31 PM CST] Multi domain='DNS:wnote.com,DNS:*.wnote.com'[Fri 11 Nov 2022 10:40:31 PM CST] Getting domain auth token for each domain[Fri 11 Nov 2022 10:40:34 PM CST] Could not get nonce, let's try again.[Fri 11 Nov 2022 10:40:41 PM CST] Could not get nonce, let's try again.[Fri 11 Nov 2022 10:40:47 PM CST] Could not get nonce, let's try again.[Fri 11 Nov 2022 10:41:38 PM CST] Getting webroot for domain='wnote.com'[Fri 11 Nov 2022 10:41:38 PM CST] Getting webroot for domain='*.wnote.com'[Fri 11 Nov 2022 10:41:38 PM CST] Adding txt value: 9QXV-Ve3eEI-JCLjJ7RkMMvPGNaTzV3YmlaXWtwrJVM for domain:_acme-challenge.wnote.com[Fri 11 Nov 2022 10:41:40 PM CST] The txt record is added:Success.[Fri 11 Nov 2022 10:41:40 PM CST] Adding txt value: KXKFA3BChlz0c5NTHN4fmO8jo-e3DbMu0VybF-YohTw for domain:_acme-challenge.wnote.com[Fri 11 Nov 2022 10:41:42 PM CST] The txt record is added:Success.[Fri 11 Nov 2022 10:41:42 PM CST] Let's check each DNS record now. Sleep 20 seconds first.[Fri 11 Nov 2022 10:42:03 PM CST] You can use '--dnssleep' to disable public dns checks.[Fri 11 Nov 2022 10:42:03 PM CST] See:https://github.com/acmesh-official/acme.sh/wiki/dnscheck[Fri 11 Nov 2022 10:42:03 PM CST] Checking wnote.com for _acme-challenge.wnote.com[Fri 11 Nov 2022 10:42:06 PM CST] Domain wnote.com '_acme-challenge.wnote.com' success.[Fri 11 Nov 2022 10:42:06 PM CST] Checking wnote.com for _acme-challenge.wnote.com[Fri 11 Nov 2022 10:42:07 PM CST] Domain wnote.com '_acme-challenge.wnote.com' success.[Fri 11 Nov 2022 10:42:07 PM CST] All success, let's return[Fri 11 Nov 2022 10:42:07 PM CST] Verifying:wnote.com[Fri 11 Nov 2022 10:42:12 PM CST] Processing, The CA is processing your order, please just wait. (1/30)[Fri 11 Nov 2022 10:42:20 PM CST] Processing, The CA is processing your order, please just wait. (2/30)[Fri 11 Nov 2022 10:42:29 PM CST] Processing, The CA is processing your order, please just wait. (3/30)[Fri 11 Nov 2022 10:42:38 PM CST] Processing, The CA is processing your order, please just wait. (4/30)[Fri 11 Nov 2022 10:42:46 PM CST] Processing, The CA is processing your order, please just wait. (5/30)[Fri 11 Nov 2022 10:42:55 PM CST] Processing, The CA is processing your order, please just wait. (6/30)[Fri 11 Nov 2022 10:43:02 PM CST] Success[Fri 11 Nov 2022 10:43:02 PM CST] Verifying:*.wnote.com[Fri 11 Nov 2022 10:43:06 PM CST] Processing, The CA is processing your order, please just wait. (1/30)[Fri 11 Nov 2022 10:43:13 PM CST] Processing, The CA is processing your order, please just wait. (2/30)[Fri 11 Nov 2022 10:43:28 PM CST] Processing, The CA is processing your order, please just wait. (3/30)[Fri 11 Nov 2022 10:43:41 PM CST] Processing, The CA is processing your order, please just wait. (4/30)[Fri 11 Nov 2022 10:43:48 PM CST] Processing, The CA is processing your order, please just wait. (5/30)[Fri 11 Nov 2022 10:43:52 PM CST] Processing, The CA is processing your order, please just wait. (6/30)[Fri 11 Nov 2022 10:43:58 PM CST] Processing, The CA is processing your order, please just wait. (7/30)[Fri 11 Nov 2022 10:44:10 PM CST] Processing, The CA is processing your order, please just wait. (8/30)[Fri 11 Nov 2022 10:44:29 PM CST] Processing, The CA is processing your order, please just wait. (9/30)[Fri 11 Nov 2022 10:44:59 PM CST] Success[Fri 11 Nov 2022 10:44:59 PM CST] Removing DNS records.[Fri 11 Nov 2022 10:44:59 PM CST] Removing txt: 9QXV-Ve3eEI-JCLmJ7RkLMvPGNaTzV3YmlaXWtwrJVM for domain:_acme-challenge.wnote.com[Fri 11 Nov 2022 10:45:02 PM CST] Removed:Success[Fri 11 Nov 2022 10:45:02 PM CST] Removing txt: KXKKA3BChlz0c5NOHN4fmk8jo-e3DMMu0VybF-YohTw for domain:_acme-challenge.wnote.com[Fri 11 Nov 2022 10:45:06 PM CST] Removed:Success[Fri 11 Nov 2022 10:45:06 PM CST] Verify finished, start to sign.[Fri 11 Nov 2022 10:45:06 PM CST] Lets finalize the order.[Fri 11 Nov 2022 10:45:06 PM CST] Le_OrderFinalize='https://acme.zerossl.com/v2/DV90/order/FYF3wr0jlkJarp3dFuRaKg/finalize'[Fri 11 Nov 2022 10:45:33 PM CST] Order status is processing, lets sleep and retry.[Fri 11 Nov 2022 10:45:33 PM CST] Retry after:15[Fri 11 Nov 2022 10:45:49 PM CST] Polling order status:https://acme.zerossl.com/v2/DV90/order/FYF3wr0jlkJarp3dFuRaKg[Fri 11 Nov 2022 10:45:55 PM CST] Downloading cert.[Fri 11 Nov 2022 10:45:55 PM CST] Le_LinkCert='https://acme.zerossl.com/v2/DV90/cert/RVtakD091ssrWC6HxgcWxQ'[Fri 11 Nov 2022 10:46:02 PM CST] Cert success.-----BEGIN CERTIFICATE-----MIIGbjCCBFagAwIBAgIRAOee+mMTTeRu9hUkpcDXkQcwDQYJKoZIhvcNAQEMBQAwSzELMAkGA1UEBhMCQVQxEDAOBgNVBAoTB1plcm9TU0wxKjAoBgNVBAMTIVplcm9TU0wgUlNBIERvbWFpbiBTZWN1cmUgU2l0ZSBDQTAeFw0yMjExMTEwMDAwMDBaFw0y............fH91qX3O1eXUPQEku+ZLx8hfqKKUuI0l8t6qQkDnK3N+987XdsEXN2mRHnTOfyo44Z8RVsC8gXep8VxsVSQ/0urED3ghLBz7Ya5pLFl0inJeLXC/MD1HETryH1iSojv2JHNsJhGlwrhqORg91jodBBl4-----END CERTIFICATE-----[Fri 11 Nov 2022 10:46:02 PM CST] Your cert is in:/root/.acme.sh/wnote.com/wnote.com.cer[Fri 11 Nov 2022 10:46:02 PM CST] Your cert key is in:/root/.acme.sh/wnote.com/wnote.com.key[Fri 11 Nov 2022 10:46:02 PM CST] The intermediate CA cert is in:/root/.acme.sh/wnote.com/ca.cer[Fri 11 Nov 2022 10:46:02 PM CST] And the full chain certs is there:/root/.acme.sh/wnote.com/fullchain.cer