Add version endpoint.

This commit is contained in:
Mariano Cano 2019-11-20 17:01:31 -08:00 committed by max furman
parent db3b795eea
commit c60641701b
3 changed files with 49 additions and 2 deletions

View file

@ -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())
}