Add version endpoint.
This commit is contained in:
parent
db3b795eea
commit
c60641701b
3 changed files with 49 additions and 2 deletions
|
@ -13,6 +13,7 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/smallstep/certificates/authority"
|
||||
"github.com/smallstep/certificates/commands"
|
||||
"github.com/smallstep/cli/command"
|
||||
"github.com/smallstep/cli/command/version"
|
||||
|
@ -29,6 +30,7 @@ var (
|
|||
|
||||
func init() {
|
||||
config.Set("Smallstep CA", Version, BuildTime)
|
||||
authority.GlobalVersion.Version = Version
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue