Documentation
¶
Index ¶
- func GenerateAllCerts(outDir string) error
- func GenerateCASignedCert(caCert *x509.Certificate, caKey *rsa.PrivateKey, certKeyBase string) ([]byte, []byte, error)
- func GenerateNewCA(certKeyBase string) ([]byte, []byte, error)
- func ParsePemCertificate(certPem []byte) (*x509.Certificate, error)
- func ParsePemKey(keyPem []byte) (*rsa.PrivateKey, error)
- func WriteCertAndKey(certDER []byte, certKey *rsa.PrivateKey, certKeyBase string) ([]byte, []byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAllCerts ¶
GenerateAllCerts generates the full set of required certs for chia blockchain
func GenerateCASignedCert ¶
func GenerateCASignedCert(caCert *x509.Certificate, caKey *rsa.PrivateKey, certKeyBase string) ([]byte, []byte, error)
GenerateCASignedCert generates a new key/cert signed by the given CA
func GenerateNewCA ¶
GenerateNewCA generates a new CA
func ParsePemCertificate ¶
func ParsePemCertificate(certPem []byte) (*x509.Certificate, error)
ParsePemCertificate parses a certificate
func ParsePemKey ¶
func ParsePemKey(keyPem []byte) (*rsa.PrivateKey, error)
ParsePemKey parses a key
func WriteCertAndKey ¶
func WriteCertAndKey(certDER []byte, certKey *rsa.PrivateKey, certKeyBase string) ([]byte, []byte, error)
WriteCertAndKey Returns the written cert bytes, key bytes, and error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.