crypto: use a stronger private key for tests
commit3e018afbfe005a3448949bfe3954888b9d8460c4
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 15 Jul 2020 15:47:01 +0000 (15 16:47 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 17 Jul 2020 12:20:57 +0000 (17 14:20 +0200)
treed1c18240c21878a4c04270ebd7815837d66d2726
parent1c404d756fd59ecee09dec924b88c492d24b3fc8
crypto: use a stronger private key for tests

The unit tests using the x509 crypto functionality have started
failing in Fedora 33 rawhide with a message like

      The certificate uses an insecure algorithm

This is result of Fedora changes to support strong crypto [1]. RSA
with 1024 bit key is viewed as legacy and thus insecure. Generate
a new private key which is 3072 bits long and reasonable future
proof.

[1] https://fedoraproject.org/wiki/Changes/StrongCryptoSettings2

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20200715154701.1041325-1-berrange@redhat.com>
Reviewed-by: Kashyap Chamarthy <kchamart@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/crypto-tls-x509-helpers.c
tests/qemu-iotests/common.tls