certificates

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Overview

Copyright (C) 2021-2023, Kubefirst

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

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