Add certificate store

This commit is contained in:
2021-12-05 01:00:32 +01:00
parent 8f3de10c93
commit a1737dd2f6
7 changed files with 271 additions and 12 deletions

View File

@@ -241,7 +241,7 @@ func (sc *ServerStoreConfig) GetStore() (store.FileStore, func() error, error) {
return s, nopCloseFunc, nil
}
if strings.EqualFold(sc.Type, "memory") {
return store.NewMemoryFileStore(), nopCloseFunc, nil
return store.NewMemoryStore(), nopCloseFunc, nil
}
return nil, nil, fmt.Errorf("invalid store config")