forked from TrueCloudLab/certificates
Enable admin automatically if a token is provided.
This commit is contained in:
parent
5344f42f21
commit
26122a2cbf
1 changed files with 1 additions and 1 deletions
|
@ -440,7 +440,7 @@ func (a *Authority) init() error {
|
|||
// TODO: mimick the x509CAService GetCertificateAuthority here too?
|
||||
}
|
||||
|
||||
if a.config.AuthorityConfig.EnableAdmin {
|
||||
if a.config.AuthorityConfig.EnableAdmin || a.linkedCAToken != "" {
|
||||
// Initialize step-ca Admin Database if it's not already initialized using
|
||||
// WithAdminDB.
|
||||
if a.adminDB == nil {
|
||||
|
|
Loading…
Reference in a new issue