Documentation ¶
Index ¶
- Constants
- Variables
- func AltNames(crt *x509.Certificate) ([]string, []string)
- func Export(block *pem.Block, path string) (err error)
- func ExportBytes(block *pem.Block) []byte
- func IsValidCN(name string) bool
- func Parse(path string) (*x509.Certificate, error)
- func ParseAltNames(altNames []string) (dnsNames, ipAddresses []string)
- func ParseBytes(data []byte) (*x509.Certificate, error)
- func Wrap(crt *x509.Certificate, key *Key, ca *x509.Certificate, signer *Key) (*pem.Block, *pem.Block, error)
- func WrapCrt(crt *x509.Certificate, key *Key, ca *x509.Certificate, signer *Key) (*pem.Block, error)
- func WrapKey(key *Key) (*pem.Block, error)
- type Key
- type Request
Constants ¶
View Source
const ( DefaultCrtAlgo = RSA UnsupportedAlgorithm = "" EDDSA = "eddsa" ECDSA = "ecdsa" RSA = "rsa" )
View Source
const DefaultCrtDuration = time.Duration(397 * 24 * time.Hour)
Variables ¶
View Source
var DomainRegex = regexp.MustCompile(`^[*\.]{0,2}(?:(?:[\*a-z][a-z0-9-]+)\.)+[a-z]{2,}$`)
Functions ¶
func ExportBytes ¶
func ParseAltNames ¶
func ParseBytes ¶
func ParseBytes(data []byte) (*x509.Certificate, error)
Types ¶
type Key ¶
func ParseKeyPair ¶
func ParseKeyPair(crtPath, keyPath string) (*x509.Certificate, *Key, error)
func ParseKeyPairBytes ¶
func ParseKeyPairBytes(crt, key []byte) (*x509.Certificate, *Key, error)
Click to show internal directories.
Click to hide internal directories.