mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 19:47:54 +00:00
Allow ASCII-armored PGP pub keys to be passed into -pgp-keys.
Fixes #940
This commit is contained in:
@@ -148,8 +148,8 @@ func TestInit_PGP(t *testing.T) {
|
||||
|
||||
args = []string{
|
||||
"-address", addr,
|
||||
"-key-shares", "3",
|
||||
"-pgp-keys", pubFiles[0] + ",@" + pubFiles[1] + "," + pubFiles[2],
|
||||
"-key-shares", "4",
|
||||
"-pgp-keys", pubFiles[0] + ",@" + pubFiles[1] + "," + pubFiles[2] + "," + pubFiles[3],
|
||||
"-key-threshold", "2",
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ func TestInit_PGP(t *testing.T) {
|
||||
}
|
||||
|
||||
expected := &vault.SealConfig{
|
||||
SecretShares: 3,
|
||||
SecretShares: 4,
|
||||
SecretThreshold: 2,
|
||||
PGPKeys: pgpKeys,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user