certificates

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCertificateUsage

func CheckCertificateUsage(domain string) error

CheckCertificateUsage polls letsdebug to get information about used certificates

Types

type CertificateDetail

type CertificateDetail struct {
	Issued         time.Time
	ExpirationDays float64
	DNSNames       []string
}

CertificateDetail captures information on each individual certificate

type CertificateQueryResult

type CertificateQueryResult struct {
	Id  int    `json:"crtsh_id"`
	Der string `json:"der"`
}

CertificateQueryResult details each object in the returned response's results field

type Response

type Response struct {
	Query   string                   `json:"string"`
	Results []CertificateQueryResult `json:"results"`
}

Response documents the object received from the upstream API

Jump to

Keyboard shortcuts

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