func NewTestCA(caType services.CertAuthType, domainName string) *services.CertAuthority {
	keyBytes := PEMBytes["rsa"]
	key, err := ssh.ParsePrivateKey(keyBytes)
	if err != nil {
		panic(err)
	}
	pubKey := key.PublicKey()

	return &services.CertAuthority{
		Type:         caType,
		DomainName:   domainName,
		CheckingKeys: [][]byte{ssh.MarshalAuthorizedKey(pubKey)},
		SigningKeys:  [][]byte{keyBytes},
	}
}
// NewTestCA returns new test authority with a test key as a public and
// signing key
NewTestCA returns new test authority with a test key as a public and
signing key
// NewTestCA returns new test authority with a test key as a public and // signing key
func NewTestCA(caType services.CertAuthType, domainName string) *services.CertAuthority {
	keyBytes := PEMBytes["rsa"]
	key, err := ssh.ParsePrivateKey(keyBytes)
	if err != nil {
		panic(err)
	}
	pubKey := key.PublicKey()
	return &services.CertAuthority{
		Type:         caType,
		DomainName:   domainName,
		CheckingKeys: [][]byte{ssh.MarshalAuthorizedKey(pubKey)},
		SigningKeys:  [][]byte{keyBytes},
	}
}
func NewTestCA ( caType services . CertAuthType , domainName string ) * services . CertAuthority { keyBytes := PEMBytes [ " " ] key , err := ssh . ParsePrivateKey ( keyBytes ) if err != nil { panic ( err ) } pubKey := key . PublicKey ( ) return & services . CertAuthority { Type : caType , DomainName : domainName , CheckingKeys : [ ] [ ] byte { ssh . MarshalAuthorizedKey ( pubKey ) } , SigningKeys : [ ] [ ] byte { keyBytes } , } }
NewTestCA returns new test authority with a test key as a public and
signing key
NewTestCA returns new test authority with a test key as a public and signing key