Documentation ¶
Index ¶
- func GenJwsFromPrivateKey(t *testing.T, privKey *rsa.PrivateKey, appName string) *jose.JSONWebSignature
- func GenerateCertificate() ([]byte, []byte, error)
- func GenerateCertificateFiles() (string, string, error)
- func GenerateKeyPair() (*rsa.PrivateKey, *rsa.PublicKey, error)
- func PublicKeyToBytes(pub *rsa.PublicKey) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenJwsFromPrivateKey ¶
func GenJwsFromPrivateKey(t *testing.T, privKey *rsa.PrivateKey, appName string) *jose.JSONWebSignature
GenJwsFromPrivateKey TEST ONLY: generate a new JWS token signed by a privKey
func GenerateCertificate ¶
GenerateCertificate TEST-ONLY: generate a private key and a certificate
func GenerateCertificateFiles ¶
GenerateCertificateFiles TEST ONLY: will generate a test certificate/priv key and store it on files
func GenerateKeyPair ¶
func GenerateKeyPair() (*rsa.PrivateKey, *rsa.PublicKey, error)
GenerateKeyPair TEST ONLY: generate a new RSA key pairs
func PublicKeyToBytes ¶
PublicKeyToBytes TEST ONLY:marshall an rsa.PublicKey to an array of bytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.