Documentation ¶
Overview ¶
Package crypto implements key generators.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCsrRequest ¶
NewCsrRequest generates a private key and Certificate Signing Request(CSR). This enables us to use custom CA to sign the server certificates. First parameter is the full path to the output directory where the CSR and the key will be stored. The second one is the host (DNSName or IPAddr) for which we are creating the request. The function output is the full path to our new CSR and private key. Eg: (/var/tmp/qed.csr, /var/tmp/qed_key.pem, nil)
func NewEd25519SignerKeysFile ¶
NewEd25519SignerKeysFile generates a new private/public signer key. Input parameter is the full path to the output directory where the keys will be stored. The function output is the full path to our new signer keys and an error. Eg: (/var/tmp/qed_ed25519, /var/tmp/qed_ed25519.pub, nil)
func NewSelfSignedCert ¶
NewSelfSignedCert generates a new Tls certificate and private key. First parameter is the full path to the output directory where the certificate and the key will be stored. The second one is the host (DNSName or IPAddr) for which we are signing the certificate. The function output is the full path to our new certificate and private key. Eg: (/var/tmp/qed_key.pem, /var/tmp/qed_cert.pem, nil)
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package hashing implements different hashers and their funcionality.
|
Package hashing implements different hashers and their funcionality. |
Package sign implements funcionality to create signers, which are able to sign messages and verify signed messages.
|
Package sign implements funcionality to create signers, which are able to sign messages and verify signed messages. |