Skip to content

Commit

Permalink
Merge pull request #54 from libp2p/go1.14
Browse files Browse the repository at this point in the history
update to Go 1.14
  • Loading branch information
Stebalien authored Mar 13, 2020
2 parents 21893f7 + 1ca1358 commit 5a96fcd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions p2p/security/tls/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,12 @@ var _ = Describe("Transport", func() {

transforms := []transform{
{
name: "private key used in the TLS handshake doesn't match the public key in the cert",
apply: invalidateCertChain,
remoteErr: Equal("tls: invalid certificate signature"),
name: "private key used in the TLS handshake doesn't match the public key in the cert",
apply: invalidateCertChain,
remoteErr: Or(
Equal("tls: invalid signature by the client certificate: ECDSA verification failure"),
Equal("tls: invalid signature by the server certificate: ECDSA verification failure"),
),
},
{
name: "certificate chain contains 2 certs",
Expand All @@ -339,7 +342,7 @@ var _ = Describe("Transport", func() {
{
name: "cert is expired",
apply: expiredCert,
remoteErr: Equal("certificate verification failed: x509: certificate has expired or is not yet valid"),
remoteErr: ContainSubstring("certificate has expired or is not yet valid"),
},
{
name: "cert doesn't have the key extension",
Expand Down

0 comments on commit 5a96fcd

Please sign in to comment.