joinmisskey / bash-install

Install Misskey with one shell script!
MIT License
29 stars 13 forks source link

`certbot` throws error when requesting a certificate for wildcard subdomain. #7

Closed jojobii-arks closed 2 years ago

jojobii-arks commented 2 years ago

Problem

Within ubuntu.sh, certbot throws error when requesting a certificate for wildcard subdomain.

https://github.com/joinmisskey/bash-install/blob/d580ecefd940b91b023133f188e736930dda2cab/ubuntu.sh#L500

Removing the wildcard subdomain from nginx setup resolves this issue.

Logs:

Process: prepare certificate;
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for arks.cafe and *.arks.cafe
Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA. You may need to use an authenticator plugin that can do challenges over DNS.
Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA. You may need to use an authenticator plugin that can do challenges over DNS.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

Steps to reproduce.

  1. During setup process, input a domain without a subdomain during Enter host where you want to install Misskey:, and proceed with setup.
  2. input y for Do you want to setup nginx?:, proceed.
  3. input n for Do you use Cloudflare?:, proceed.
  4. Continue with installation process until error is thrown.

Solution