# Trying to renew certificate but fails

**URL:** <https://community.letsencrypt.org/t/trying-to-renew-certificate-but-fails/51854>\
**Category:** Issuance Tech\
**Created:** [January 31, 2018, 8:19pm UTC](https://community.letsencrypt.org/t/trying-to-renew-certificate-but-fails/51854 "2018-01-31T20:19:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fzamperin](https://avatars.discourse-cdn.com/v4/letter/f/b782af/32.png) [@fzamperin](https://community.letsencrypt.org/u/fzamperin)\
**Post date:** [January 31, 2018, 8:19pm UTC](https://community.letsencrypt.org/t/trying-to-renew-certificate-but-fails/51854/1 "2018-01-31T20:19:30Z")

</div>

I’m trying to renew my certificate using [acme-nginx](https://github.com/kshcherban/acme-nginx), when I renew it gives me this error:

```
Jan 31 18:06:53 Trying to register account key
Jan 31 18:06:56 Already registered!
Jan 31 18:06:56 Requesting challenge
Jan 31 18:06:58 Adding nginx virtual host and completing challenge
Jan 31 18:06:58 Creating file /etc/nginx/sites-enabled/0-letsencrypt
Jan 31 18:07:01 desenv.oniq.com.br challenge did not pass: {u'status': u'invalid', u'validationRecord': [{u'addressesResolved': [u'80.241.211.206', u'2a02:c205:2011:2279::1'], u'url': u'http://desenv.oniq.com.br/.well-known/acme-challenge/Z3VYW1RWnvH0I-Yf3HlOwJV-8JDhRI7cGZXW_l6myVY', u'hostname': u'desenv.oniq.com.br', u'addressesTried': [], u'addressUsed': u'2a02:c205:2011:2279::1', u'port': u'80'}], u'keyAuthorization': u'Z3VYW1RWnvH0I-Yf3HlOwJV-8JDhRI7cGZXW_l6myVY.uFxU6Pn7CVBZryVu2tNlxDGIZT41cWcfVb-WjV3BoQM', u'uri': u'https://acme-v01.api.letsencrypt.org/acme/challenge/O92dvHmK7Ara0nkmSlMvnyIoCmvDe3Mz0wqAgHTXuzc/3299359643', u'token': u'Z3VYW1RWnvH0I-Yf3HlOwJV-8JDhRI7cGZXW_l6myVY', u'error': {u'status': 403, u'type': u'urn:acme:error:unauthorized', u'detail': u'Invalid response from http://desenv.oniq.com.br/.well-known/acme-challenge/Z3VYW1RWnvH0I-Yf3HlOwJV-8JDhRI7cGZXW_l6myVY: "<html>\r\n<head><title>404 Not Found</title></head>\r\n<body bgcolor="white">\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>"'}, u'type': u'http-01'}

```

I runned in debbug mode to see nginx configuration and everything works as expected, when I try to acces the challenge url of the mds file the download starts, Any guesses?

---

<div class="post-metadata">

**Author:** ![jared.m](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jared.m/32/17871_2.png) [@jared.m](https://community.letsencrypt.org/u/jared.m)\
**Post date:** [January 31, 2018, 8:36pm UTC](https://community.letsencrypt.org/t/trying-to-renew-certificate-but-fails/51854/2 "2018-01-31T20:36:23Z")

</div>

It’s using an IPv6 address to connect to your server, are you sure that your webserver is properly responding to IPv6 requests? This is a very common cause of failure.

---

<div class="post-metadata">

**Author:** ![fzamperin](https://avatars.discourse-cdn.com/v4/letter/f/b782af/32.png) [@fzamperin](https://community.letsencrypt.org/u/fzamperin)\
**Post date:** [January 31, 2018, 8:48pm UTC](https://community.letsencrypt.org/t/trying-to-renew-certificate-but-fails/51854/3 "2018-01-31T20:48:48Z")

</div>

Hi Jared you’re absolutely right, I was using and old version of acme-nginx, when it created my virtual server at nginx it doesn’t added support to listen port 80 ipv6, I did the test on a amazon ec2 instance since in my computer It was working. Thanks a lot for the reply.

---

<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:** [March 2, 2018, 8:48pm UTC](https://community.letsencrypt.org/t/trying-to-renew-certificate-but-fails/51854/4 "2018-03-02T20:48:55Z")

</div>

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