MCPcopy Create free account
hub / github.com/crewjam/saml / otherKey

Function otherKey

simplesign_binding_test.go:123–126  ·  view source on GitHub ↗

otherKey returns a key that no test certificate trusts as the IDP's, and its certificate.

(t *testing.T)

Source from the content-addressed store, hash-verified

121// otherKey returns a key that no test certificate trusts as the IDP's, and
122// its certificate.
123func otherKey(t *testing.T) (crypto.Signer, *x509.Certificate) {
124 t.Helper()
125 return mustParsePrivateKey(golden.Get(t, "key_2017.pem")), mustParseCertificate(golden.Get(t, "cert_2017.pem"))
126}
127
128// The example form values in sstc-saml-binding-simplesign-cs-01 section 2.11
129// are line wrapped; they must still decode.

Calls 3

GetMethod · 0.65
mustParsePrivateKeyFunction · 0.50
mustParseCertificateFunction · 0.50

Tested by

no test coverage detected