NewKiteKey returns a new generated kite key. (Copied and modified from kontrol.go) If the host does not have a kite.key file kite.New() panics. This is a helper to put a fake key on it's location.
()
| 18 | // kontrol.go) If the host does not have a kite.key file kite.New() panics. |
| 19 | // This is a helper to put a fake key on it's location. |
| 20 | func NewKiteKey() *jwt.Token { |
| 21 | return NewToken("", testkeys.Private, testkeys.Public) |
| 22 | } |
| 23 | |
| 24 | // NewKiteKeyUsername is like NewKiteKey() but it uses the given username |
| 25 | // instead of using the "testuser" name |