func GenerateKey() (*rsa.PrivateKey, error) {
	return rsa.GenerateKey(rand.Reader, rsaKeySize)
}
GenerateKey generates a random 2048 byte rsa key
package util
import (
	"crypto"
	"crypto/rand"
	"crypto/rsa"
	"crypto/tls"
	"net/http"
	"os/user"
	"github.com/Symantec/Dominator/lib/log"
	"github.com/Symantec/keymaster/lib/client/net"
)
func GetUserCreds(userName string) (password []byte, err error) {
	return getUserCreds(userName)
}
func GetUserHomeDir(usr *user.User) (string, error) {
	return usr.HomeDir, nil
}
func GenKeyPair(
	privateKeyPath string, identity string, logger log.Logger) (
	privateKey crypto.Signer, publicKeyPath string, err error) {
	return genKeyPair(privateKeyPath, identity, logger)
}
func GetHttpClient(tlsConfig *tls.Config,
	dialer net.Dialer) (*http.Client, error) {
	return getHttpClient(tlsConfig, dialer)
}