# Renew problem only for one of two domains with identical configuration

**URL:** <https://community.letsencrypt.org/t/renew-problem-only-for-one-of-two-domains-with-identical-configuration/33864>\
**Category:** Help\
**Created:** [May 12, 2017, 1:10am UTC](https://community.letsencrypt.org/t/renew-problem-only-for-one-of-two-domains-with-identical-configuration/33864 "2017-05-12T01:10:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mustafa07](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@mustafa07](https://community.letsencrypt.org/u/mustafa07)\
**Post date:** [May 12, 2017, 1:10am UTC](https://community.letsencrypt.org/t/renew-problem-only-for-one-of-two-domains-with-identical-configuration/33864/1 "2017-05-12T01:10:36Z")

</div>

Please fill out the fields below so we can help you better.

My domain is:  
[aliswebtasarim.com](http://aliswebtasarim.com)

I ran this command:  
sudo /usr/bin/letsencrypt certonly --manual -d [aliswebtasarim.com](http://aliswebtasarim.com) -d [www.aliswebtasarim.com](http://www.aliswebtasarim.com)

It produced this output:  
Failed authorization procedure. [www.aliswebtasarim.com](http://www.aliswebtasarim.com) (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from [http://www.aliswebtasarim.com/.well-known/acme-challenge/XRa3zIGOJS8gzhl7CFsekdOGlwk4kUQfeoz9tOCevpU:](http://www.aliswebtasarim.com/.well-known/acme-challenge/XRa3zIGOJS8gzhl7CFsekdOGlwk4kUQfeoz9tOCevpU:) " \<!–[if IE]\>\<meta http-equiv='X-UA", [aliswebtasarim.com](http://aliswebtasarim.com) (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from [http://aliswebtasarim.com/.well-known/acme-challenge/JkmoBCfHPdNW0LQlbyphIAqBmIydFOUDN6xnuwIxhDA:](http://aliswebtasarim.com/.well-known/acme-challenge/JkmoBCfHPdNW0LQlbyphIAqBmIydFOUDN6xnuwIxhDA:) " \<!–[if IE]\>\<meta http-equiv='X-UA"

IMPORTANT NOTES:

- The following errors were reported by the server:

My operating system is (include version):  
macOS Sierra 10.12.24  
My web server is (include version):  
Ubuntu 16.04.2 LTS

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

---

<div class="post-metadata">

**Author:** ![schoen](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/schoen/32/79_2.png) [@schoen](https://community.letsencrypt.org/u/schoen)\
**Post date:** [May 12, 2017, 1:13am UTC](https://community.letsencrypt.org/t/renew-problem-only-for-one-of-two-domains-with-identical-configuration/33864/2 "2017-05-12T01:13:17Z")

</div>

Hi @mustafa07,

A few questions for you about this:

- Why did you choose to use `--manual`?

- Are you trying to renew an existing certificate? If so, why didn’t use you `letsencrypt renew`? Is it because you used `--manual` the first time around?

- Did Certbot tell you to create particular files in `/.well-known/acme-challenge` on your web site? If so, did you try to create them and did you have reason to believe you had followed what Certbot asked you to do? The error message suggests that you did not succeed in creating the verification files in the appropriate locations where Certbot should have instructed you to place them.

---

<div class="post-metadata">

**Author:** ![mustafa07](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@mustafa07](https://community.letsencrypt.org/u/mustafa07)\
**Post date:** [May 12, 2017, 1:36am UTC](https://community.letsencrypt.org/t/renew-problem-only-for-one-of-two-domains-with-identical-configuration/33864/3 "2017-05-12T01:36:32Z")

</div>

Hi @schoen ,  
Thanks for the answer. Regarding to issues:

- "Why did you choose to use --manual?"  
because I’m trying to renew an existing certificate which I couldn’t be able to renew via;  
sudo /usr/bin/letsencrypt certonly --webroot -w /var/www/html/alisweb -d [aliswebtasarim.com](http://aliswebtasarim.com) -d  
sudo letsencrypt renew --force-renew  
sudo /usr/bin/letsencrypt renew

Also I checked if can be able to reach [https://aliswebtasarım.com/.well-known/acme-challenge/asdf](https://xn--aliswebtasarm-fbc.com/.well-known/acme-challenge/asdf)  
it seems work. But the interesting part is there is two domains with identical configurations, one is renewed and the other not.

Thanks in advance  
Mustada

---

<div class="post-metadata">

**Author:** ![schoen](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/schoen/32/79_2.png) [@schoen](https://community.letsencrypt.org/u/schoen)\
**Post date:** [May 17, 2017, 1:48am UTC](https://community.letsencrypt.org/t/renew-problem-only-for-one-of-two-domains-with-identical-configuration/33864/4 "2017-05-17T01:48:20Z")

</div>

> [@mustafa07](#):
>
> because I'm trying to renew an existing certificate which I couldn't be able to renew via;  
> sudo /usr/bin/letsencrypt certonly --webroot -w /var/www/html/alisweb -d [aliswebtasarim.com](http://aliswebtasarim.com) -d

Are you missing something after the second `-d`?

Why wouldn't you be able to use `--webroot` to renew the certificate? Do you get a particular error in this case? Was `--webroot` how you originally obtained the certificate?

---

<div class="post-metadata">

**Author:** ![mustafa07](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@mustafa07](https://community.letsencrypt.org/u/mustafa07)\
**Post date:** [May 17, 2017, 7:44pm UTC](https://community.letsencrypt.org/t/renew-problem-only-for-one-of-two-domains-with-identical-configuration/33864/5 "2017-05-17T19:44:45Z")

</div>

> Are you missing something after the second -d?

No, while copy pasting two lines mixed. But I found a way to renew certificate manually first stopping server  
then renew with this command:  
sudo /usr/bin/letsencrypt certonly -d [aliswebtasarim.com](http://aliswebtasarim.com) -d [www.aliswebtasarim.com](http://www.aliswebtasarim.com)  
and restart server after. Now I need to create a cron job for doing this automatically. Do you have any clue about that?

Thanks

---

<div class="post-metadata">

**Author:** ![schoen](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/schoen/32/79_2.png) [@schoen](https://community.letsencrypt.org/u/schoen)\
**Post date:** [May 17, 2017, 10:48pm UTC](https://community.letsencrypt.org/t/renew-problem-only-for-one-of-two-domains-with-identical-configuration/33864/6 "2017-05-17T22:48:55Z")

</div>

You probably got the certificate with `--standalone` in this case.

You can probably use something like

`/usr/bin/letsencrypt renew --pre-hook "service apache2 stop" --post-hook "service apache2 start"`

in your `crontab` file. This says that if a certificate renewal is necessary, the pre-hook command should be run; then the renewal should be performed; finally, the post-hook command should be run.

I don’t know what commands you used to stop and restart your web server, so I used some Apache-oriented commands, but you could substitute the commands that you would normally use.

If you want to confirm that it work, you can add `--force-renew` to this command line and then let it run _once_ from `crontab`, and make sure a renewal happened and the server was restarted. However, when running this command regularly, you should leave out `--force-renew` because otherwise it will renew the certificate much too frequently and run into Let’s Encrypt rate limits.

Also, the `crontab` in question needs to run as root, not as a regular user.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [June 16, 2017, 10:49pm UTC](https://community.letsencrypt.org/t/renew-problem-only-for-one-of-two-domains-with-identical-configuration/33864/7 "2017-06-16T22:49:39Z")

</div>

Closed on June 16, 2017, 10:49pm UTC

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

---

<div class="post-metadata">

**Author:** ![jsha](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jsha/32/12_2.png) [@jsha](https://community.letsencrypt.org/u/jsha)\
**Post date:** [August 17, 2017, 2:51pm UTC](https://community.letsencrypt.org/t/renew-problem-only-for-one-of-two-domains-with-identical-configuration/33864/8 "2017-08-17T14:51:03Z")

</div>

Opened on August 17, 2017, 2:51pm UTC


