pki: Add trust subcommand to install root cert (closes #3204)

This commit is contained in:
Matthew Holt
2020-03-31 17:56:36 -06:00
parent 904d9cab39
commit 244b839f98
5 changed files with 73 additions and 20 deletions

View File

@ -372,7 +372,7 @@ func run(newCfg *Config, start bool) error {
}
if newCfg.storage == nil {
newCfg.storage = &certmagic.FileStorage{Path: AppDataDir()}
newCfg.storage = DefaultStorage
}
certmagic.Default.Storage = newCfg.storage