Skip to content

New x/crypto release breaks ssh tests ("crypto/rsa: message too long for RSA public key size") #316

@gibmat

Description

@gibmat

Recently, the x/crypto library switched to SHA-512 for the default RSA certificate signature, which doesn't fit in 512 bits (https://cs.opensource.google/go/x/crypto/+/b4de73f9ece8163b492578e101e4ef8923ac2c5c). This causes several of the ssh tests to fail with the error "crypto/rsa: message too long for RSA public key size".

Updating generateRSAKey() in ssh/generate_test.go to use a 1024 bit key size fixes the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions