Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BlockPublicKey contains the value which defines a Public Key in a PEM block BlockPublicKey = "PUBLIC KEY" // BlockPrivateKey contains the vlaue which defines a PrivateKey in a PEM block BlockPrivateKey = "PRIVATE KEY" )
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomString ¶
GenerateRandomString with crypto/rand
func UnmarshalRSAPrivateKeyFromFile ¶
func UnmarshalRSAPrivateKeyFromFile(file string) (*rsa.PrivateKey, error)
UnmarshalRSAPrivateKeyFromFile reads the given file and returns a PrivateKey
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.