mirror of
https://github.com/lissy93/networking-toolbox.git
synced 2026-11-20 21:23:10 +03:00
Removes CT log entry timestamp, as crt.sh no longer returns it
This commit is contained in:
1 parent
705db13ced
commit
4513aaae21
4 files changed
-6
No files matched your search
@@ -12,7 +12,6 @@ interface CTCertificate {
|
||||
issuer_name: string;
|
||||
common_name: string;
|
||||
name_value: string;
|
||||
entry_timestamp: string;
|
||||
not_before: string;
|
||||
not_after: string;
|
||||
serial_number: string;
|
||||
@@ -24,7 +23,6 @@ interface ProcessedCertificate {
|
||||
sans: string[];
|
||||
issuer: string;
|
||||
issuerId: number;
|
||||
entryTimestamp: string;
|
||||
notBefore: string;
|
||||
notAfter: string;
|
||||
serialNumber: string;
|
||||
@@ -125,7 +123,6 @@ async function searchCTLogs(domain: string): Promise<CTLogResponse> {
|
||||
sans,
|
||||
issuer: cert.issuer_name,
|
||||
issuerId: cert.issuer_ca_id,
|
||||
entryTimestamp: cert.entry_timestamp,
|
||||
notBefore: cert.not_before,
|
||||
notAfter: cert.not_after,
|
||||
serialNumber: cert.serial_number,
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
sans: string[];
|
||||
issuer: string;
|
||||
issuerId: number;
|
||||
entryTimestamp: string;
|
||||
notBefore: string;
|
||||
notAfter: string;
|
||||
serialNumber: string;
|
||||
|
||||
@@ -49,7 +49,6 @@ describe('CT Log Search API', () => {
|
||||
expect(cert).toHaveProperty('sans');
|
||||
expect(cert).toHaveProperty('issuer');
|
||||
expect(cert).toHaveProperty('issuerId');
|
||||
expect(cert).toHaveProperty('entryTimestamp');
|
||||
expect(cert).toHaveProperty('notBefore');
|
||||
expect(cert).toHaveProperty('notAfter');
|
||||
expect(cert).toHaveProperty('serialNumber');
|
||||
|
||||
@@ -40,7 +40,6 @@ describe('CT Log Search API', () => {
|
||||
issuer_name: "Let's Encrypt",
|
||||
common_name: 'example.com',
|
||||
name_value: 'example.com\nwww.example.com',
|
||||
entry_timestamp: '2024-01-01T00:00:00Z',
|
||||
not_before: '2024-01-01T00:00:00Z',
|
||||
not_after: '2024-04-01T00:00:00Z',
|
||||
serial_number: 'abc123',
|
||||
|
||||
Reference in new issue
Block a user