Skip to content

crypto/tls: TLS interface only supports RSA keys #2319

Description

@gopherbot

by louisk@google.com:

As a public interface, the crypto.tls.Certificate type, currently defined as:
type Certificate struct {
    Certificate [][]byte
    PrivateKey  *rsa.PrivateKey
    ...
}

probably should have the PrivateKey field changed to an interface type.  Otherwise it
would be very difficult to add implementations for non-RSA cipher suites in the future.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions