csr

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 12 Imported by: 5

Documentation

Overview

package csr contains helper functions related to certificate signing requests

package csr contains helper functions related to certificate signing requests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCSR

func CreateCSR(validTime time.Duration, cn, idCn string) (*protos.CSR, error)

func CreateCSRForId

func CreateCSRForId(validTime time.Duration, id *protos.Identity) (*protos.CSR, error)

func CreateSignedCertAndPrivKey

func CreateSignedCertAndPrivKey(validTime time.Duration) (*x509.Certificate, interface{}, error)

func ReadCSR

func ReadCSR(csrFile string) (*x509.CertificateRequest, error)

ReadCSR read and parse CSR from csrFile and return it as *x509.CertificateRequest

func WriteCSR

func WriteCSR(csr []byte, csrFile string) error

WriteCSR write a DER encoded csr (e.g returned by x509.CreateCertificateRequest) into file specified by csrFile

Types

This section is empty.

Jump to

Keyboard shortcuts

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