forked from TrueCloudLab/certificates
Update GetAuthorityInfo -> GetInfo
This commit is contained in:
parent
90cb6315b1
commit
a13e58e340
2 changed files with 3 additions and 3 deletions
|
@ -567,8 +567,8 @@ func (a *Authority) GetAdminDatabase() admin.DB {
|
||||||
return a.adminDB
|
return a.adminDB
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *Authority) GetAuthorityInfo() *AuthorityInfo {
|
func (a *Authority) GetInfo() AuthorityInfo {
|
||||||
ai := &AuthorityInfo{
|
ai := AuthorityInfo{
|
||||||
StartTime: a.startTime,
|
StartTime: a.startTime,
|
||||||
RootX509Certs: a.rootX509Certs,
|
RootX509Certs: a.rootX509Certs,
|
||||||
}
|
}
|
||||||
|
|
2
ca/ca.go
2
ca/ca.go
|
@ -299,7 +299,7 @@ func (ca *CA) Run() error {
|
||||||
errs := make(chan error, 1)
|
errs := make(chan error, 1)
|
||||||
|
|
||||||
if !ca.opts.quiet {
|
if !ca.opts.quiet {
|
||||||
authorityInfo := ca.auth.GetAuthorityInfo()
|
authorityInfo := ca.auth.GetInfo()
|
||||||
log.Printf("Address: %s", ca.config.Address)
|
log.Printf("Address: %s", ca.config.Address)
|
||||||
for _, crt := range authorityInfo.RootX509Certs {
|
for _, crt := range authorityInfo.RootX509Certs {
|
||||||
sum := sha256.Sum256(crt.Raw)
|
sum := sha256.Sum256(crt.Raw)
|
||||||
|
|
Loading…
Reference in a new issue