certs

package module
v0.0.0-...-c84a53b Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: MIT Imports: 5 Imported by: 0

README

ssl-checker

Check SSL Certificate expiration.

Usage

  • Build go build -o ssl-checker cmd/*.go

  • Check the website ./ssl-checker [domain]

  • Result example { "cn":"*.adriantirusli.me", "not_after":"2021-09-28T12:00:00Z", "not_before":"2020-08-29T00:00:00Z", "dns_names":["*.adriantirusli.me","adriantirusli.me"] "signature_algorithm":"SHA256-RSA","issuer":"Amazon", "organizations":["Amazon"],"expiration":22982505.661074 }

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cert

type Cert struct {
	CommonName         string    `json:"cn"`
	NotAfter           time.Time `json:"not_after"`
	NotBefore          time.Time `json:"not_before"`
	DNSNames           []string  `json:"dns_names"`
	SignatureAlgorithm string    `json:"signature_algorithm"`
	IssuerCommonName   string    `json:"issuer"`
	Organizations      []string  `json:"organizations"`
	ExpireAfter        float64   `json:"expiration"`
}

Cert are collections of field

func ParseRemoteCertificate

func ParseRemoteCertificate(addr string) (*Cert, error)

ParseRemoteCertificate is to return the resulting TLS connection

func (*Cert) Jsonify

func (cert *Cert) Jsonify() string

Jsonify used to change the format given to JSON

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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