Re: Re: NTS Server Setup with Let's Encrypt
Gerd Hoerst <[email protected]> Fri, 25 Apr 2025 10:58:48 +0200
| Newsgroups | gmane.comp.time.chrony.user |
|---|---|
| Message-ID | <[email protected]> |
Hi ! Thanks a lot.... but i have actual no idea where to start with bug search... the key is a rsa key from letsencrypt and the setup un chrony ntsserverkey /etc/chrony/cert/privkey.pem ntsservercert /etc/chrony/cert/cert.pem ntsdumpdir /var/lib/chrony the chronyc -N serverstats says: NTP packets received : 35975673 NTP packets dropped : 0 Command packets received : 81 Command packets dropped : 0 Client log records dropped : 15616714 NTS-KE connections accepted: 946 NTS-KE connections dropped : 0 Authenticated NTP packets : 0 Interleaved NTP packets : 110 NTP timestamps held : 2403 NTP timestamp span : 766138 NTP daemon RX timestamps : 0 NTP daemon TX timestamps : 35971583 NTP kernel RX timestamps : 35971693 NTP kernel TX timestamps : 110 NTP hardware RX timestamps : 0 NTP hardware TX timestamps : 0 Ciao Gerd Am 24.04.2025 18:13, schrieb kross-WHuJl200arIRAJMLapdhQVaTQe2KTcn/@public.gmane.org: > Hello Gerd, > > Assuming that your intention is to run an NTS server at the domain you > shared as part of your example, just fyi that it is accepting TCP > connections, but it seems it is not accepting TLS connections on the > default NTS-KE port. In case you're running chronyd (strong likelihood > given the forum), in my experience, that can happen when chronyd is > not able to read one or more of the credential files, e.g., because > chronyd cannot find it/them in the place configured, or chronyd > doesn't have read rights for the file(s). > > Kind regards, > > Joachim > > 23.04.2025 11:37:09 kross-WHuJl200arIRAJMLapdhQVaTQe2KTcn/@public.gmane.org: > >>> so why don't copy them before and give them the correct right ? >> >> Sure, but why not let the deploy hook do that as well for you? >> >>> the hook is used to restart services >> >> Yes, if that is all you tell it to do. But it can do more than that. >> >> >> The deploy hook does whatever you tell it to do, as defined by the >> script one places in the deploy subfolder. >> >> Kind regards, >> >> Joachim >> >> 23.04.2025 11:31:04 Gerd Hoerst <[email protected]>: >> >> Hi ! >> >> the hook is used to restart services (like apache/postfix/dovecot) >> after a renewal (if there was no user right issue, you need also to >> restart/reload chrony to use the new certs... so why don't copy them >> before and give them the correct rights ? >> >> Ciao Gerd >> Am 22.04.25 um 23:51 schrieb kross-WHuJl200arIRAJMLapdhQVaTQe2KTcn/@public.gmane.org: >> Why just do that in the renewal-hook/post script ? > > Not sure I fully grasp your drift, so apologies if the following is > old news. > > The point of the certbot renewal hook is automation of deployment. > > Nothing wrong with manually keeping track of the validity of existing > certificates, e.g., periodically checking, setting a reminder > somewhere, having a tool that checks and alerts, or waiting until > someone or something alerts upon finding an expired certificate (as > you will have seen, Let's encrypt will cease sending reminders in the > near future). And then deploying manually (assuming certbot did an > automated renewal, or maybe do that manually as well). > > But once the number of certificates to keep track of reaches a certain > level, or the thrill of learning the ropes, i.e., setting this up in > the first place, and going through the motions of deploying manually > after (manual or automated) renewal, diminishes after a few > iterations, automated deployment (after automated renewal) is your > friend. > > As always, YMMV. > > Kind regards, > > Joachim > > 22.04.2025 22:50:06 Sviatoslav Feshchenko > <[email protected]>: > >> This seem like a simpler solution! Thank you for sharing! >> >> Sviatoslav >> >> On Tuesday, April 22nd, 2025 at 3:32 AM, Gerd Hoerst >> <[email protected]> wrote: >> >> Hi ! >> >> Why just do that in the renewal-hook/post script ? >> >> cp -L /etc/letsencrypt/live/time.hoerst.net/cert.pem >> /etc/chrony/cert/ >> cp -L /etc/letsencrypt/live/time.hoerst.net/privkey.pem >> /etc/chrony/cert/ >> chmod g+r /etc/chrony/cert/* >> systemctl restart chrony >> >> Ciao Gerd >> Am 20.04.25 um 19:40 schrieb kross-WHuJl200arIRAJMLapdhQVaTQe2KTcn/@public.gmane.org: >> … -- To unsubscribe email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org with "unsubscribe" in the subject. For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org with "help" in the subject. Trouble? Email [email protected]