@ -197,6 +201,21 @@ func setKeyPair(t *testing.T, p *PKI) {
// setFiles sets some static, gibberish intermediate and root CA certificate bytes.
funcsetFiles(t*testing.T,p*PKI){
p.Files["/home/step/certs/root_ca.crt"]=encodeCertificate(&x509.Certificate{Raw:[]byte("these are just some fake root CA cert bytes")})
p.Files["/home/step/certs/intermediate_ca.crt"]=encodeCertificate(&x509.Certificate{Raw:[]byte("these are just some fake intermediate CA cert bytes")})
p.Files[p.Root[0]]=encodeCertificate(&x509.Certificate{Raw:[]byte("these are just some fake root CA cert bytes")})
p.Files[p.RootKey[0]]=[]byte("these are just some fake root CA key bytes")
p.Files[p.Intermediate]=encodeCertificate(&x509.Certificate{Raw:[]byte("these are just some fake intermediate CA cert bytes")})
p.Files[p.IntermediateKey]=[]byte("these are just some fake intermediate CA key bytes")
}
// setSSHSigningKeys sets some static, gibberish ssh user and host CA certificate and key bytes.