mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-23 04:36:40 +00:00
test: use 1024-bit signing key in OCI api client tests
This commit is contained in:
@@ -49,7 +49,7 @@ func testClient(t *testing.T, h http.HandlerFunc) (oci.Client, *[]capture) {
|
||||
}))
|
||||
t.Cleanup(srv.Close)
|
||||
|
||||
key, err := rsa.GenerateKey(rand.Reader, 2048)
|
||||
key, err := rsa.GenerateKey(rand.Reader, 1024)
|
||||
require.NoError(t, err)
|
||||
pemKey := pem.EncodeToMemory(&pem.Block{
|
||||
Type: "RSA PRIVATE KEY", Bytes: x509.MarshalPKCS1PrivateKey(key),
|
||||
|
||||
Reference in New Issue
Block a user