Skip to content

Commit

Permalink
runfix: start listening for new crl points on e2ei service init (#6206)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrykBuniX committed May 10, 2024
1 parent 8a193da commit 875592a
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -60,9 +60,6 @@ export class E2EIServiceExternal extends TypedEventEmitter<Events> {
) {
super();
this.enrollmentStorage = createE2EIEnrollmentStorage(coreDatabase);
mlsService.on('newCrlDistributionPoints', distributionPoints =>
this.handleNewCrlDistributionPoints(distributionPoints),
);
}

// If we have a handle in the local storage, we are in the enrollment process (this handle is saved before oauth redirect)
Expand Down Expand Up @@ -207,6 +204,11 @@ export class E2EIServiceExternal extends TypedEventEmitter<Events> {
*/
public async initialize(discoveryUrl: string): Promise<void> {
this._acmeService = new AcmeService(discoveryUrl);

this.mlsService.on('newCrlDistributionPoints', distributionPoints =>
this.handleNewCrlDistributionPoints(distributionPoints),
);

await this.registerServerCertificates();
await this.initialiseCrlDistributionTimers();
}
Expand Down

0 comments on commit 875592a

Please sign in to comment.