fix: crt
This commit is contained in:
@@ -63,6 +63,12 @@ func main() {
|
||||
}
|
||||
args = append(args, rest[0])
|
||||
rest = rest[1:]
|
||||
if len(args) > 0 {
|
||||
// Once we have identified the subcommand, the remaining arguments
|
||||
// belong to it (including its own flags), so we stop parsing global flags.
|
||||
args = append(args, rest...)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if *showVersion {
|
||||
|
||||
@@ -280,7 +280,7 @@ WantedBy=multi-user.target
|
||||
|
||||
// Output credentials to copy to the frontend
|
||||
fmt.Println("\n======================================================================")
|
||||
fmt.Println(" NADIR CLIENT CREDENTIALS (COPY THESE TO SVELTEKIT FRONTEND)")
|
||||
fmt.Println(" NADIR CLIENT CREDENTIALS (COPY THESE TO NADIR WEBUI)")
|
||||
fmt.Println("======================================================================")
|
||||
fmt.Printf("Token for \"dashboard\" (Bearer):\n %s\n", tokenStr)
|
||||
if isTLS {
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ func generateSelfSignedCert() (tls.Certificate, error) {
|
||||
|
||||
template := x509.Certificate{
|
||||
SerialNumber: serial,
|
||||
Subject: pkix.Name{Organization: []string{"nadir-dev-local"}},
|
||||
Subject: pkix.Name{Organization: []string{"urania-nadir"}},
|
||||
NotBefore: time.Now(),
|
||||
NotAfter: time.Now().Add(365 * 24 * time.Hour),
|
||||
KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
|
||||
|
||||
Reference in New Issue
Block a user