Adding domainnames (Alt Domain) with acme.sh

As subject, I need to add an alt domain (ytc1.dyndns.org) to my certs using acme.sh
But I just can;t work out the correct command/switches to use.
Any guidance so I can move to the next stage, appreciated.

Should I use renew or issue ? And do I just add the new domain(s) with -d ?
TIA

My domain is:
ytc1-cloud.dyndns.org
I ran this command:
Nothing yet
It produced this output:

My web server is (include version):
Apache 2.4
The operating system my web server runs on is (include version):
Solaris 11.4
My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):
yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
No
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):
acme.sh -v


v2.8.0

1 Like

Hi @YTC1
Welcome to the community forum.
You come with a question and the answer!

6. Use Apache mode

Rip

1 Like

There is a feature request about this:

I guess you’ll have to make a new cert?

1 Like

Thanks, I’ll see how it goes.

1 Like

Hmm, issue led to a new error. I’ll go and open a new help request
—8<
./acme.sh --issue -d ytc1.dyndns.org -d ytc1-cloud.dyndns.org --use-wget --test --apache --accountconf ${PWD}/account.conf
[Sunday, 8 March 2020 at 18:00:47 GMT] Using stage ACME_DIRECTORY: https://acme-staging.api.letsencrypt.org/directory
[Sunday, 8 March 2020 at 18:00:49 GMT] Checking if there is an error in the apache config file before starting.
[Sunday, 8 March 2020 at 18:00:49 GMT] OK
[Sunday, 8 March 2020 at 18:00:50 GMT] JFYI, Config file /etc/apache2/2.4/httpd.conf is backuped to /root/.acme.sh/httpd.conf
[Sunday, 8 March 2020 at 18:00:50 GMT] In case there is an error that can not be restored automatically, you may try restore it yourself.
[Sunday, 8 March 2020 at 18:00:50 GMT] The backup file will be deleted on success, just forget it.
[Sunday, 8 March 2020 at 18:00:50 GMT] Registering account
[Sunday, 8 March 2020 at 18:00:52 GMT] Register account Error: {“type”:“urn:acme:error:unauthorized”,“detail”:“Account creation on ACMEv1 is disabled. Please upgrade your ACME client to a version that supports ACMEv2 / RFC 8555. See End of Life Plan for ACMEv1 for details.”,“status”: 403}
[Sunday, 8 March 2020 at 18:00:52 GMT] Please check log file for more details: /var/www/acme/.acme.sh/acme.sh.log
root@ytc1-cloud:/var/www/acme/.acme.sh# ./acme.sh -v
https://github.com/Neilpang/acme.sh
v2.8.0
—8<

1 Like

Not an expert on the script (even though I use it)
If I am incorrect someone will speak up…
I would comment out these two lines in acme.sh and try again.

LETSENCRYPT_CA_V1="https://acme-v01.api.letsencrypt.org/directory"
LETSENCRYPT_STAGING_CA_V1="https://acme-staging.api.letsencrypt.org/directory"

AND please post the results here!

Rip

That was me forgetting to use --home, I don’t run acme.sh from root due to having my Solaris zone run immutable.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.