Skip to content

Commit

Permalink
Fixes cer parsing unit test using updated forge
Browse files Browse the repository at this point in the history
  • Loading branch information
gingi committed Jul 1, 2022
1 parent 6d6c8fb commit 50ffd9a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ describe("CertificateService", () => {
it("parse a cer certificate", async (done) => {
const file = await loadCertificate("batchtest2.cer");
certificateService.parseCertificate(file, "batchtest").subscribe((certificate) => {
// TODO: Forge actually calculates this thumbprint incorrectly. Replace
// with the correct thumbprint when this is fixed
expect(certificate.thumbprint).toBe("6da50c0bf5100da7cf63f390da15af6569c2dff7");
expect(certificate.thumbprint).toBe("227341ea44f8deffb6972532818fccf797f7339e");
expect(certificate.thumbprintAlgorithm).toBe("sha1");
expect(certificate.certificateFormat).toBe("cer");
expect(certificate.password).toBeUndefined();
Expand Down
Binary file modified src/test/fixtures/certificates/batchtest2.cer
Binary file not shown.

0 comments on commit 50ffd9a

Please sign in to comment.