Documentation ¶
Index ¶
- func EncodePFX(private interface{}, certificate []byte, intermediates []byte) ([]byte, string, error)
- func GenerateCSR(sans []string, bits int) ([]byte, error)
- func GenerateCSRWithPrivateKey(sans []string, private *rsa.PrivateKey) ([]byte, error)
- func InsertKeyCSR(csr []byte, private *rsa.PrivateKey) ([]byte, error)
- func Sign(csr []byte, private *rsa.PrivateKey, serial int64, duration time.Duration) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodePFX ¶
func EncodePFX(private interface{}, certificate []byte, intermediates []byte) ([]byte, string, error)
Generates DER Encoded PFX file using passed in private keys and certificates
func GenerateCSRWithPrivateKey ¶
func GenerateCSRWithPrivateKey(sans []string, private *rsa.PrivateKey) ([]byte, error)
Generate creates a CSR with existing rsa key pair
func InsertKeyCSR ¶
func InsertKeyCSR(csr []byte, private *rsa.PrivateKey) ([]byte, error)
Generates CSR after parsing certificate request and then embeding public key within request <cr> must be DER Encoded
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.