# Proper cn in certificate for use with NTS

**URL:** https://community.ntppool.org/t/proper-cn-in-certificate-for-use-with-nts/1381
**Category:** Server operators
**Created:** [August 22, 2019, 2:33pm UTC](https://community.ntppool.org/t/proper-cn-in-certificate-for-use-with-nts/1381 "2019-08-22T14:33:03Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![hildeb](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/hildeb/32/61_2.png) [@hildeb](https://community.ntppool.org/u/hildeb)
#### Post date: [August 22, 2019, 2:33pm UTC](https://community.ntppool.org/t/proper-cn-in-certificate-for-use-with-nts/1381/1 "2019-08-22T14:33:04Z")

</div>

I’m tinkering with NTS on 188.166.95.178 and 193.175.73.151 – NTS seems to be working, but which cn (in the x.509 Certificate) should pool servers use?

Turns out that both servers can properly communicate using [char-ntp-pool.charite.de](http://char-ntp-pool.charite.de) and [mail.python.org](http://mail.python.org):

```
server char-ntp-pool.charite.de nts iburst
server mail.python.org nts iburst
```

---

<div class="post-metadata">

### Author: ![littlejason99](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/littlejason99/32/242_2.png) [@littlejason99](https://community.ntppool.org/u/littlejason99)
#### Post date: [August 23, 2019, 3:32pm UTC](https://community.ntppool.org/t/proper-cn-in-certificate-for-use-with-nts/1381/2 "2019-08-23T15:32:52Z")

</div>

I would assume you would put the proper hostname of your machine, whatever a reverse lookup of your IP resolves to? NTPSec is the only program I know of at the moment that has implemented the draft NTS spec, and unfortunately I haven’t had time to mess around with it…

If you have to implement all the various continent/country pool aliases that could be extremely tedious…

The NTP Pool does not officially support NTS (or any authentication scheme) at this time…

---

<div class="post-metadata">

### Author: ![ask](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/ask/32/907_2.png) [@ask](https://community.ntppool.org/u/ask)
#### Post date: [August 25, 2019, 8:23am UTC](https://community.ntppool.org/t/proper-cn-in-certificate-for-use-with-nts/1381/3 "2019-08-25T08:23:08Z")

</div>

The current NTS spec doesn’t support use cases like the pool, sadly.

[https://datatracker.ietf.org/doc/draft-ietf-ntp-using-nts-for-ntp/](https://datatracker.ietf.org/doc/draft-ietf-ntp-using-nts-for-ntp/)

There’s been some discussion in the working group about it, but nothing made it into the draft. [https://datatracker.ietf.org/wg/ntp/about/](https://datatracker.ietf.org/wg/ntp/about/)

(It’s sad to me because outside the OS vendor NTP services I believe we service a huge part of the NTP queries done in the world, so even if “security” has different trade-offs for a public volunteer run service like ours, it could still have value).

---

<div class="post-metadata">

### Author: ![hildeb](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/hildeb/32/61_2.png) [@hildeb](https://community.ntppool.org/u/hildeb)
#### Post date: [August 25, 2019, 9:33am UTC](https://community.ntppool.org/t/proper-cn-in-certificate-for-use-with-nts/1381/4 "2019-08-25T09:33:36Z")

</div>

Yes, I thought it would be “nice to have”, but I see the issue with additional CN values (SubjectAlternativeName) and the like.

---

<div class="post-metadata">

### Author: ![mlichvar](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@mlichvar](https://community.ntppool.org/u/mlichvar)
#### Post date: [August 27, 2019, 7:53am UTC](https://community.ntppool.org/t/proper-cn-in-certificate-for-use-with-nts/1381/5 "2019-08-27T07:53:52Z")

</div>

What exactly is missing in NTS to be usable in [pool.ntp.org](http://pool.ntp.org)? Do we need the servers to be in multiple zones? Would a wildcard certificate not work?

For a start, I thought there could be a single experimental (e.g. `nts-test.pool.ntp.org`) zone, which would resolve to servers that support NTS. The pool system would generate a different certificate for each server, which would be valid for a short period of time (e.g. one week) and would have to be periodically updated. To make it a little bit more difficult for attackers, only servers that have at least one year of good history can be in the nts pool.

Is that not worth the trouble?

---

<div class="post-metadata">

### Author: ![littlejason99](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/littlejason99/32/242_2.png) [@littlejason99](https://community.ntppool.org/u/littlejason99)
#### Post date: [August 27, 2019, 12:07pm UTC](https://community.ntppool.org/t/proper-cn-in-certificate-for-use-with-nts/1381/6 "2019-08-27T12:07:42Z")

</div>

I don’t think it’s worth the trouble, especially until NTS is finalized and implemented in more NTP packages / products.

---

<div class="post-metadata">

### Author: ![mlichvar](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@mlichvar](https://community.ntppool.org/u/mlichvar)
#### Post date: [October 27, 2020, 9:49am UTC](https://community.ntppool.org/t/proper-cn-in-certificate-for-use-with-nts/1381/7 "2020-10-27T09:49:25Z")

</div>

The NTS specification has been published in [RFC 8915](https://tools.ietf.org/html/rfc8915). Some client/server implementations support it, and are already included in some Linux distributions, ready to be configured with/as NTS servers.

Any news about potential NTS support in [pool.ntp.org](http://pool.ntp.org)?

I have few NTS-enabled servers using the `nts-test.strangled.net` name, if anyone is looking for more servers for testing. If I could get a certificate for an NTS-specific [pool.ntp.org](http://pool.ntp.org) zone, I’d be happy to add it.
