mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-30 07:43:42 +00:00
(do not merge) local dev hack to send device certs
This commit is contained in:
parent
5ef934b62d
commit
1dd9794e26
@ -1,7 +1,7 @@
|
|||||||
// Copyright (c) Tailscale Inc & AUTHORS
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||||||
// SPDX-License-Identifier: BSD-3-Clause
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
//go:build windows
|
//go:build !windows
|
||||||
|
|
||||||
// darwin,cgo is also supported by certstore but untested, so it is not enabled.
|
// darwin,cgo is also supported by certstore but untested, so it is not enabled.
|
||||||
|
|
||||||
@ -32,6 +32,7 @@ import (
|
|||||||
// Example: "CN=Tailscale Inc Test Root CA,OU=Tailscale Inc Test Certificate Authority,O=Tailscale Inc,ST=ON,C=CA"
|
// Example: "CN=Tailscale Inc Test Root CA,OU=Tailscale Inc Test Certificate Authority,O=Tailscale Inc,ST=ON,C=CA"
|
||||||
func getMachineCertificateSubject() string {
|
func getMachineCertificateSubject() string {
|
||||||
machineCertSubject, _ := syspolicy.GetString(syspolicy.MachineCertificateSubject, "")
|
machineCertSubject, _ := syspolicy.GetString(syspolicy.MachineCertificateSubject, "")
|
||||||
|
machineCertSubject = "CN=Tailscale Inc Test Root CA,OU=Tailscale Inc Test Certificate Authority,O=Tailscale Inc,ST=ON,C=CA"
|
||||||
return machineCertSubject
|
return machineCertSubject
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright (c) Tailscale Inc & AUTHORS
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||||||
// SPDX-License-Identifier: BSD-3-Clause
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
//go:build !windows
|
//go:build windows
|
||||||
|
|
||||||
package controlclient
|
package controlclient
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user