certificateutils

package
v2.0.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Based on https://github.com/asyncsrc/ssl_scan

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckExpirationStatus

func CheckExpirationStatus(cd *CertificateDetails, expirationDaysThreshold int)

Types

type CertificateDetails

type CertificateDetails struct {
	DaysUntilExpiration int
	IssuerName          string
	SubjectName         string
	SerialNumber        string
	ExpiringSoon        bool
	Expired             bool
	Hostname            string
	TimeTaken           time.Duration
	ExpirationDate      string
	Thumbprint          string
}

func GetCertificateDetails

func GetCertificateDetails(hostname string, connectionTimeout int) (CertificateDetails, error)

func ReadCertificateDetailsFromFile

func ReadCertificateDetailsFromFile(publicCertFile, privateCertFile string) ([]CertificateDetails, error)

func (CertificateDetails) String

func (cd CertificateDetails) String() string

type ResultError

type ResultError struct {
	Res CertificateDetails
	Err error
}

Jump to

Keyboard shortcuts

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