projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
17417: Merge branch 'main' into 17417-add-arm64
[arvados.git]
/
lib
/
boot
/
cert.go
diff --git
a/lib/boot/cert.go
b/lib/boot/cert.go
index b2b8c896c2866bceeb399475d5aa7e6cc2dea75c..2b38dab053cd63d571a00bf4d791f90b328c979c 100644
(file)
--- a/
lib/boot/cert.go
+++ b/
lib/boot/cert.go
@@
-32,14
+32,14
@@
func (createCertificates) Run(ctx context.Context, fail func(error), super *Supe
} else {
san += fmt.Sprintf(",DNS:%s", super.ListenHost)
}
} else {
san += fmt.Sprintf(",DNS:%s", super.ListenHost)
}
- if hostname, err := os.Hostname(); err != nil {
+ hostname, err := os.Hostname()
+ if err != nil {
return fmt.Errorf("hostname: %w", err)
return fmt.Errorf("hostname: %w", err)
- } else {
- san += ",DNS:" + hostname
}
}
+ san += ",DNS:" + hostname
// Generate root key
// Generate root key
- err
:
= super.RunProgram(ctx, super.tempdir, runOptions{}, "openssl", "genrsa", "-out", "rootCA.key", "4096")
+ err = super.RunProgram(ctx, super.tempdir, runOptions{}, "openssl", "genrsa", "-out", "rootCA.key", "4096")
if err != nil {
return err
}
if err != nil {
return err
}