Fix audience to fix ca tests.

This commit is contained in:
Mariano Cano 2018-10-24 12:50:42 -07:00
parent 511e1a9e23
commit 2b2598c695

View file

@ -45,7 +45,7 @@ func generateOTT(subject string) string {
Issuer: "mariano", Issuer: "mariano",
NotBefore: jwt.NewNumericDate(now), NotBefore: jwt.NewNumericDate(now),
Expiry: jwt.NewNumericDate(now.Add(time.Minute)), Expiry: jwt.NewNumericDate(now.Add(time.Minute)),
Audience: []string{"https://ca/sign"}, Audience: []string{"step-certificate-authority"},
} }
raw, err := jwt.Signed(sig).Claims(cl).CompactSerialize() raw, err := jwt.Signed(sig).Claims(cl).CompactSerialize()
if err != nil { if err != nil {