You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to automate certificate renewal for Proxmox PVE and now I have to create a daily cronjob to update the Tailscale certificate with running pvenode cert set /root/[hostname].ts.net.crt /root/[hostname].ts.net.key --force --restart
How should we solve this?
If the tailscale cert command had an -run argument it could be used to run server specific commands to install and reload the renewed certificates when they are created.
tailscale cert -run "pvenode cert set /root/[hostname].ts.net.crt /root/[hostname].ts.net.key --force --restart"
I've understood that I don't have to run tailscale cert every time the certificate needs to be renewed in a cron job since tailscale would do that automatically.
But when Tailscale renews the certificate it will save the certificates to --cert-file/key location but won't instruct the service to reload it (proxmox, nginx, apache, etc.)
tailscale cert runs once. It does not do some kind of background process to periodically update the certificates. In a few months when the certificates expire they just stop working.
If you want to keep the certificates refreshed you need to periodically re-run tailscale cert
"Either methods renew certificates as needed, before their 90 day expiry. A certificate is automatically requested for renewal within the weeks before its expiry, when a certificate is fetched."
Reacted by Micheal Waltz ☁️, Sebastian Danielsson, Abhi Agarwal, Thomas Schulte, NolanT and Rufus
I would like to see some way to manually renew a Tailscale certificate as well. I recently setup Plex Media Server using Tailscale MagicDNS and HTTPS certificates, but Plex uses a pkcs12 certificate and a passkey.
These can be generated from the Tailscale certs with,
and then configured as a Custom Certificate section in Plex, and it works.
This will break when the certs expire, and having a way to manually renew them to put them into a cronjob to renew/restart automatically can avoid this.
Currently I'm going to setup a daily cronjob to re-create plex.tailnet-0000.ts.net.p12 and restart Plex, which should catch any certs renewals most of the time, but having a deterministic way of doing this via tailscale cert is preferred.
Currently I'm going to setup a daily cronjob to re-create plex.tailnet-0000.ts.net.p12 and restart Plex, which should catch any certs renewals most of the time, but having a deterministic way of doing this via tailscale cert is preferred.
A cronjob is what I would expect. Maybe once a week, request an updated certificate and install it.
@DentonGentry this seems like a good opportunity to at least clarify the docs, the way they are worded makes it sound like the certificate is kept in a tailscale config and automatically renewed without re-running the command. Maybe a section on adding it to a crontab?
Activity
DentonGentry commentedon Jul 6, 2022
I don't understand what a
--runargument would bring versus having cron run a script:durind commentedon Jul 6, 2022
I've understood that I don't have to run
tailscale certevery time the certificate needs to be renewed in a cron job since tailscale would do that automatically.But when Tailscale renews the certificate it will save the certificates to --cert-file/key location but won't instruct the service to reload it (proxmox, nginx, apache, etc.)
DentonGentry commentedon Jul 6, 2022
tailscale certruns once. It does not do some kind of background process to periodically update the certificates. In a few months when the certificates expire they just stop working.If you want to keep the certificates refreshed you need to periodically re-run
tailscale certdurind commentedon Jul 6, 2022
Then the KB-page https://tailscale.com/kb/1153/enabling-https/ has misleading information.
"Either methods renew certificates as needed, before their 90 day expiry. A certificate is automatically requested for renewal within the weeks before its expiry, when a certificate is fetched."
ecliptik commentedon Jul 7, 2022
I would like to see some way to manually renew a Tailscale certificate as well. I recently setup Plex Media Server using Tailscale MagicDNS and HTTPS certificates, but Plex uses a
pkcs12certificate and a passkey.These can be generated from the Tailscale certs with,
and then configured as a
Custom Certificatesection in Plex, and it works.This will break when the certs expire, and having a way to manually renew them to put them into a cronjob to renew/restart automatically can avoid this.
Currently I'm going to setup a daily cronjob to re-create
plex.tailnet-0000.ts.net.p12and restart Plex, which should catch any certs renewals most of the time, but having a deterministic way of doing this viatailscale certis preferred.DentonGentry commentedon Aug 28, 2022
A cronjob is what I would expect. Maybe once a week, request an updated certificate and install it.
Omeryl commentedon Oct 20, 2022
@DentonGentry this seems like a good opportunity to at least clarify the docs, the way they are worded makes it sound like the certificate is kept in a tailscale config and automatically renewed without re-running the command. Maybe a section on adding it to a crontab?
cmd/tailscale/cli: start making cert output support pkcs12 (p12) output
cmd/tailscale/cli: start making cert output support pkcs12 (p12) output
cmd/tailscale/cli: start making cert output support pkcs12 (p12) output
cmd/tailscale/cli: start making cert output support pkcs12 (p12) output
DentonGentry commentedon Feb 17, 2023
https://tailscale.com/kb/1153/enabling-https/ removed the statement about renewing certificates earlier this week.