certificates

package
v0.115.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 11 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