tlspage

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

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

Go to latest
Published: Jul 8, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCSR

func GenerateCSR(privKeyPEM string, hostname string) (csrPEM string, err error)

GenerateCSR generates a PEM-encoded CSR with the given private key for the given hostname.

func GenerateKey

func GenerateKey() (privKeyPEM string, err error)

GenerateKey generates a new ECDSA P-256 private key and returns it as a PEM-encoded string.

func GetCertificate

func GetCertificate(csrPEM string, origin string) (certificatePEMs []string, err error)

GetCertificate submits the CSR to the server specified by origin and returns a list of certificates. The first certificate is the leaf certificate.

func Hostname

func Hostname(privKeyPEM string, origin string) (string, error)

Hostname calculates the key-pinned hostname corresponding to the public key for the given private key. The format will be "{32 chars}.{32 chars}.origin".

Types

This section is empty.

Directories

Path Synopsis
this is intended to be a hook for use with https://github.com/SSLMate/certspotter/blob/master/man/certspotter-script.md
this is intended to be a hook for use with https://github.com/SSLMate/certspotter/blob/master/man/certspotter-script.md
modified from github.com/miekg/dns
modified from github.com/miekg/dns

Jump to

Keyboard shortcuts

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