# Certbot certificates

**URL:** https://community.letsencrypt.org/t/certbot-certificates/52769
**Category:** Help
**Created:** [February 11, 2018, 7:39am UTC](https://community.letsencrypt.org/t/certbot-certificates/52769 "2018-02-11T07:39:57Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![scooter1](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/scooter1/32/37661_2.png) [@scooter1](https://community.letsencrypt.org/u/scooter1)
#### Post date: [February 11, 2018, 7:39am UTC](https://community.letsencrypt.org/t/certbot-certificates/52769/1 "2018-02-11T07:39:57Z")

</div>

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. [https://crt.sh/?q=example.com](https://crt.sh/?q=example.com)), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:batcavelounge.eu

I ran this command:sudo certbot --nginx -d [batcavelounge.eu](http://batcavelounge.eu) -d [www.batcavelounge.eu](http://www.batcavelounge.eu)

It produced this output: Could not automatically find a matching server block. Set the `server_name` directive to use the Nginx installer.

My web server is (include version):Nginx 4.2

The operating system my web server runs on is (include version):Linux Ubuntu 14.04 server

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: ![\_az](https://avatars.discourse-cdn.com/v4/letter/_/22d042/32.png) [@\_az](https://community.letsencrypt.org/u/_az)
#### Post date: [February 11, 2018, 10:10am UTC](https://community.letsencrypt.org/t/certbot-certificates/52769/2 "2018-02-11T10:10:57Z")

</div>

> [@scooter1](#):
>
> Could not automatically find a matching server block. Set the server\_name directive to use the Nginx installer.

Can you show your nginx configuration?

```nohighlight
nginx -T

```

---

<div class="post-metadata">

### Author: ![scooter1](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/scooter1/32/37661_2.png) [@scooter1](https://community.letsencrypt.org/u/scooter1)
#### Post date: [February 11, 2018, 4:33pm UTC](https://community.letsencrypt.org/t/certbot-certificates/52769/3 "2018-02-11T16:33:52Z")

</div>

Its all good 🙂 it found it, but when i tried to disable ssl3 and added a line i get this from your request with nginx -t

:/etc/nginx/sites-enabled$ sudo nginx -t  
nginx: [warn] duplicate value “TLSv1” in /etc/nginx/sites-enabled/batcavelounge.eu:100  
nginx: [warn] duplicate value “TLSv1.1” in /etc/nginx/sites-enabled/batcavelounge.eu:100  
nginx: [warn] duplicate value “TLSv1.2” in /etc/nginx/sites-enabled/batcavelounge.eu:100  
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok  
nginx: configuration file /etc/nginx/nginx.conf test is successfu

---

<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: [February 12, 2018, 5:44pm UTC](https://community.letsencrypt.org/t/certbot-certificates/52769/4 "2018-02-12T17:44:07Z")

</div>

This is probably because it’s including a file `options-ssl-nginx.conf`, which already declares such a line.

---

<div class="post-metadata">

### Author: ![scooter1](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/scooter1/32/37661_2.png) [@scooter1](https://community.letsencrypt.org/u/scooter1)
#### Post date: [February 13, 2018, 3:53am UTC](https://community.letsencrypt.org/t/certbot-certificates/52769/5 "2018-02-13T03:53:11Z")

</div>

So i should not worry about it ?

---

<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: [February 13, 2018, 5:18am UTC](https://community.letsencrypt.org/t/certbot-certificates/52769/6 "2018-02-13T05:18:24Z")

</div>

Yes, I believe you don’t have to do it because Certbot is already doing it for you.

---

<div class="post-metadata">

### Author: ![dvo](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@dvo](https://community.letsencrypt.org/u/dvo)
#### Post date: [March 13, 2018, 10:49pm UTC](https://community.letsencrypt.org/t/certbot-certificates/52769/7 "2018-03-13T22:49:04Z")

</div>

I’ve hit the same issue twice now, under similar circumstances.

Let me first state that I have done a thing regarding `options-ssl-nginx.conf`- no create or edit. Not having a clue to its function, I have no way of invoking it.

But the circumstance of this arising are eerily similar (I have no hard proof as I was not expecting this to happen).

- have many server names to handle (19 total).
- did an initial certificate with a sub-set of an inital group of 15. Had to set `server_names_hash_bucket_size 512;`
- built up this subset a couple of times.
- later as a couple of other domain DNS entries percolated, tried to add another two, and the error arose.

Any clues to look for?

---

<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: [March 13, 2018, 10:53pm UTC](https://community.letsencrypt.org/t/certbot-certificates/52769/8 "2018-03-13T22:53:09Z")

</div>

The error you see is also this one?

> Could not automatically find a matching server block. Set the server\_name directive to use the Nginx installer.

---

<div class="post-metadata">

### Author: ![dvo](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@dvo](https://community.letsencrypt.org/u/dvo)
#### Post date: [March 13, 2018, 11:35pm UTC](https://community.letsencrypt.org/t/certbot-certificates/52769/9 "2018-03-13T23:35:32Z")

</div>

That is correct;

I have little idea how to set server\_name directive. I don’t understand why it initially works, Certbot then generates its own block  
`server_name [...].net; # managed by Certbot` then complains…

---

<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: [March 13, 2018, 11:43pm UTC](https://community.letsencrypt.org/t/certbot-certificates/52769/10 "2018-03-13T23:43:03Z")

</div>

Could you show the output of `nginx -T` as suggested by @_az above?

Edit: Also, what version of Certbot are you running?

---

<div class="post-metadata">

### Author: ![dvo](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@dvo](https://community.letsencrypt.org/u/dvo)
#### Post date: [March 13, 2018, 11:49pm UTC](https://community.letsencrypt.org/t/certbot-certificates/52769/11 "2018-03-13T23:49:33Z")

</div>

yes, file enclosed[nginxT.txt](https://global.discourse-cdn.com/letsencrypt/original/3X/1/a/1ad881074591a4a0309260a3111bff858e390b12.txt) (10.7 KB)  
.

I am not certain how to extract that version. a `sudo certbot -v` gave unexpected result, but had interesting snippet  
certbot==0.21.1

Basically this was installed today.

---

<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: [March 13, 2018, 11:50pm UTC](https://community.letsencrypt.org/t/certbot-certificates/52769/12 "2018-03-13T23:50:59Z")

</div>

Thanks, and could you also provide a log from `/var/log/letsencrypt` corresponding to a time when the error occurred?

---

<div class="post-metadata">

### Author: ![dvo](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@dvo](https://community.letsencrypt.org/u/dvo)
#### Post date: [March 13, 2018, 11:54pm UTC](https://community.letsencrypt.org/t/certbot-certificates/52769/13 "2018-03-13T23:54:21Z")

</div>

And here it is. Very recent. ran it about an hour ago.

[letsencrypt\_log.txt](https://global.discourse-cdn.com/letsencrypt/original/3X/e/5/e54d1301c3df41cc20ef2309a9620a21d5c8036c.txt) (5.1 KB)

---

<div class="post-metadata">

### Author: ![dvo](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@dvo](https://community.letsencrypt.org/u/dvo)
#### Post date: [March 15, 2018, 11:32pm UTC](https://community.letsencrypt.org/t/certbot-certificates/52769/14 "2018-03-15T23:32:11Z")

</div>

Anything of use in the log?

---

<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: [April 14, 2018, 11:32pm UTC](https://community.letsencrypt.org/t/certbot-certificates/52769/15 "2018-04-14T23:32:20Z")

</div>

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