I hereby claim:
- I am gambol99 on github.
- I am gambol99 (https://keybase.io/gambol99) on keybase.
- I have a public key ASDUz_SKevDhRfY6I-XTevm65QnhHZzpYloZ9csbFT1PiQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// | |
// createCertificateAuthority generates a certificate authority request ready to be signed | |
// | |
func (r *secretStore) createCertificateAuthority(names pkix.Name, expiration time.Duration, size int) (*caCertificate, error) { | |
// step: generate a keypair | |
keys, err := rsa.GenerateKey(rand.Reader, size) | |
if err != nil { | |
return nil, fmt.Errorf("unable to genarate private keys, error: %s", err) | |
} |