tailscale / tailscale-qpkg

Package Tailscale client in QPKG
MIT License
459 stars 38 forks source link

how to get https certificate in qnap? #53

Closed lincolntan36 closed 2 years ago

lincolntan36 commented 2 years ago

Every time I try to get a certificate this happens:

[/share/CACHEDEV1_DATA/.qpkg/Tailscale] # sudo ./tailscale cert qnap.tailnet-name.ts.net Failed to connect to local Tailscale daemon for /localapi/v0/cert/qnap.tailnet-name.ts.net; not running? Error: dial unix /var/run/tailscale/tailscaled.sock: connect: no such file or directory

Even if i just type in sudo ./tailscale cert same error happens

lincolntan36 commented 2 years ago

Never mind found a solution just had to add -socket var/run/tailscale/tailscaled.sock to the command

so the full command to get a certificate would be ./tailscale -socket var/run/tailscale/tailscaled.sock cert

lincolntan36 commented 2 years ago

turns out all commands needed the -socket argument ./tailscale -socket var/run/tailscale/tailscaled.sock

cyklee commented 1 year ago

For those who care, the location of tailscaled.sock has now been changed (to the expected default /tmp/tailscale/tailscaled.sock) so you don't need to specify --socket and just use: ./tailscale cert.