github.com/kubernetes-incubator/kube-aws@v0.16.4/pki/rsa.go (about) 1 package pki 2 3 import ( 4 "crypto/rand" 5 "crypto/rsa" 6 ) 7 8 const ( 9 RSAKeySize = 2048 10 ) 11 12 func NewPrivateKey() (*rsa.PrivateKey, error) { 13 return rsa.GenerateKey(rand.Reader, RSAKeySize) 14 }