Skip to content

crypto/tls: message too long for RSA public key size #10725

Description

@bradfitz

The github.com/bradfitz/http2 curl interop tests (which require Docker; see the Makefile) stopped working as of SHA-384 signatures in 1c10598

In this test, curl running in a Docker container connects to Go over TLS on localhost. I don't know what TLS configuration curl is trying to use.

ante:http2 $ go test -a -v -run=Lenient
=== RUN TestServerWithCurl_LenientCipherSuites
2015/05/06 12:53:23 http: TLS handshake error from 127.0.0.1:37678: failed to sign ECDHE parameters: crypto/rsa: message too long for RSA public key size
--- FAIL: TestServerWithCurl_LenientCipherSuites (0.38s)
        server_test.go:2153: Running test server for curl to hit at: https://127.0.0.1:42582
        server_test.go:2168: exit status 35: * Rebuilt URL to: https://127.0.0.1:42582/
                *   Trying 127.0.0.1...
                * Connected to 127.0.0.1 (127.0.0.1) port 42582 (#0)
                * successfully set certificate verify locations:
                *   CAfile: /etc/ssl/certs/ca-certificates.crt
                  CApath: none
                * TLSv1.2, TLS handshake, Client hello (1):
                } [272 bytes data]
                * TLSv1.2, TLS handshake, Server hello (2):
                { [62 bytes data]
                * NPN, negotiated HTTP2 (h2-14)
                * TLSv1.2, TLS handshake, CERT (11):
                { [389 bytes data]
                * TLSv1.2, TLS alert, Server hello (2):
                { [2 bytes data]
                * error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure
                * Closing connection 0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions