certx

package
v0.26.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

crt.sh

This sub package isn't implemented yet and TBD on functional use cases of certificate reporting; stashing the code that was written purely for reference only

Documentation

Overview

Package certx is a package that provides functionality for certificate transparency log analysis. It leverages the certx utility to extract and analyze SSL/TLS certificates from various domains. The package is designed to work in conjunction with other subpackages within the sleuth package, such as dnsx, sub, ports, and spider, to provide a comprehensive analysis of domains and their associated certificates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateRecord

type CertificateRecord struct {
	IssuerCAID     int    `json:"issuer_ca_id" yaml:"issuer_ca_id"`
	IssuerName     string `json:"issuer_name" yaml:"issuer_name"`
	CommonName     string `json:"common_name" yaml:"common_name"`
	NameValue      string `json:"name_value" yaml:"name_value"`
	ID             int64  `json:"id" yaml:"id"`
	EntryTimestamp string `json:"entry_timestamp" yaml:"entry_timestamp"`
	NotBefore      string `json:"not_before" yaml:"not_before"`
	NotAfter       string `json:"not_after" yaml:"not_after"`
	SerialNumber   string `json:"serial_number" yaml:"serial_number"`
	ResultCount    int    `json:"result_count" yaml:"result_count"`
}

CertificateRecord represents all of the information for a single x509 certificate record

type CertsReport

type CertsReport struct {
	Domain       string              `json:"domain" yaml:"domain"`
	Certificates []CertificateRecord `json:"certificates" yaml:"certificates"`
	Errors       []string            `json:"errors" yaml:"errors"`
}

CertsReport represents the report of all certificates for a given domain

func GetDomainCerts

func GetDomainCerts(ctx context.Context, domain string) (CertsReport, error)

GetDomainCerts queries crt.sh for all certificates for a given domain

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL