diff --git a/pkg/ca/fileca/fileca.go b/pkg/ca/fileca/fileca.go index 7ef7004b1..7bd5d8932 100644 --- a/pkg/ca/fileca/fileca.go +++ b/pkg/ca/fileca/fileca.go @@ -99,6 +99,9 @@ func (fca *fileCA) CreateCertificate(_ context.Context, subject *challenges.Chal return nil, err } + fca.RLock() + defer fca.RUnlock() + return ca.CreateCSCFromDER(subject, finalCertBytes, fca.certs) }