InitKeys loads encryption keys into memory via the given Apper interface
(apper Apper)
| 30 | |
| 31 | // InitKeys loads encryption keys into memory via the given Apper interface |
| 32 | func InitKeys(apper Apper) error { |
| 33 | log.Info("Loading encryption keys...") |
| 34 | err := apper.LoadKeys() |
| 35 | if err != nil { |
| 36 | return err |
| 37 | } |
| 38 | return nil |
| 39 | } |
| 40 | |
| 41 | func initKeyPaths(app *App) { |
| 42 | emailKeyPath = filepath.Join(app.cfg.Server.KeysParentDir, emailKeyPath) |