mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-19 15:53:17 +00:00
pki: Add trust subcommand to install root cert (closes #3204)
This commit is contained in:
parent
904d9cab39
commit
244b839f98
5 changed files with 73 additions and 20 deletions
2
caddy.go
2
caddy.go
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue