rainbond: github.com/goodrain/rainbond/util/cert Index | Files

package cert

import "github.com/goodrain/rainbond/util/cert"

Index

Package Files

certutil.go

func CreateCRT Uses

func CreateCRT(RootCa *x509.Certificate, RootKey *rsa.PrivateKey, info CertInformation) error

CreateCRT create crt

func Parse Uses

func Parse(crtPath, keyPath string) (rootcertificate *x509.Certificate, rootPrivateKey *rsa.PrivateKey, err error)

Parse Parse

func ParseCrt Uses

func ParseCrt(path string) (*x509.Certificate, error)

ParseCrt ParseCrt

func ParseKey Uses

func ParseKey(path string) (*rsa.PrivateKey, error)

ParseKey ParseKey

type CertInformation Uses

type CertInformation struct {
    Country            []string
    Organization       []string
    OrganizationalUnit []string
    EmailAddress       []string
    Province           []string
    Locality           []string
    CommonName         string
    CrtName, KeyName   string
    IsCA               bool
    Names              []pkix.AttributeTypeAndValue
    IPAddresses        []net.IP
    Domains            []string
}

func CreateCertInformation Uses

func CreateCertInformation() CertInformation

CreateCertInformation CreateCertInformation

Package cert imports 11 packages (graph) and is imported by 1 packages. Updated 2019-02-27. Refresh now. Tools for package owners.