MCPcopy
hub / github.com/sideshow/apns2 / TestBadPasswordP12File

Function TestBadPasswordP12File

certificate/certificate_test.go:40–44  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

38}
39
40func TestBadPasswordP12File(t *testing.T) {
41 cer, err := certificate.FromP12File("_fixtures/certificate-valid-encrypted.p12", "")
42 assert.Equal(t, tls.Certificate{}, cer)
43 assert.Equal(t, errors.New("pkcs12: decryption password incorrect").Error(), err.Error())
44}
45
46// PEM
47

Callers

nothing calls this directly

Calls 1

FromP12FileFunction · 0.92

Tested by

no test coverage detected