Remove hex output from keys; standardize on B64 for CLI output. This (#1831)

aligns with all other interactions which use B64 encoding for bytes.
This commit is contained in:
Jeff Mitchell
2016-09-01 12:59:15 -04:00
committed by GitHub
parent ffb5fd1858
commit 392565fe01
4 changed files with 63 additions and 78 deletions

View File

@@ -2,7 +2,6 @@ package command
import (
"encoding/base64"
"encoding/hex"
"fmt"
"net"
"net/http"
@@ -525,8 +524,7 @@ func (c *ServerCommand) Run(args []string) int {
" "+export+" VAULT_ADDR="+quote+"http://"+config.Listeners[0].Config["address"]+quote+"\n\n"+
"The unseal key and root token are reproduced below in case you\n"+
"want to seal/unseal the Vault or play with authentication.\n\n"+
"Unseal Key (hex) : %s\nUnseal Key (base64): %s\nRoot Token: %s\n",
hex.EncodeToString(init.SecretShares[0]),
"Unseal Key: %s\nRoot Token: %s\n",
base64.StdEncoding.EncodeToString(init.SecretShares[0]),
init.RootToken,
))