Versions in this module Expand all Collapse all v0 v0.5.0 Aug 8, 2018 Changes in this version + func CheckIfSubjectEquals(t *testing.T, expectedSubject string, certificate *x509.Certificate) + func CreateCsr(t *testing.T, certInfo CertInfo, keys *rsa.PrivateKey) []byte + func CreateKey(t *testing.T) *rsa.PrivateKey + func CrtResponseToPemBytes(t *testing.T, certResponse *CrtResponse) []byte + func DecodeAndParseCert(t *testing.T, crtResponse *CrtResponse) *x509.Certificate + func EncodeBase64(src []byte) string + type ApiInfo struct + CertificatesUrl string + EventsURL string + MetadataURL string + type CertInfo struct + Extensions string + KeyAlgorithm string + Subject string + type ConnectorClient interface + CreateClientCert func(t *testing.T, csr, url string) (*CrtResponse, *Error) + CreateToken func(t *testing.T) TokenResponse + GetInfo func(t *testing.T, url string) (*InfoResponse, *Error) + func NewConnectorClient(remoteEnv, internalAPIUrl, externalAPIUrl string) ConnectorClient + type CrtResponse struct + Crt string + type CsrRequest struct + Csr string + type Error struct + ErrorResponse ErrorResponse + StatusCode int + type ErrorResponse struct + Code int + Error string + type InfoResponse struct + Api ApiInfo + CertUrl string + Certificate CertInfo + type TestConfig struct + ExternalAPIUrl string + GatewayUrl string + InternalAPIUrl string + func ReadConfig() (TestConfig, error) + type TokenResponse struct + Token string + URL string