From 286d7529bb828956812c29365e324505be483633 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Thu, 18 Jul 2024 17:15:27 +0200 Subject: [PATCH 1/2] acceptance tests: use 1024 bit keys This is way faster to generate compared to the default 3072. Otherwise our CI runs for ages. --- examples/x509_cert.pp | 1 + spec/acceptance/x509_cert_spec.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/x509_cert.pp b/examples/x509_cert.pp index a60ec44..9c0d22e 100644 --- a/examples/x509_cert.pp +++ b/examples/x509_cert.pp @@ -6,4 +6,5 @@ base_dir => '/tmp', owner => 'nobody', password => 'mahje1Qu', + key_size => 1024, } diff --git a/spec/acceptance/x509_cert_spec.rb b/spec/acceptance/x509_cert_spec.rb index 6992f34..8f98f3a 100644 --- a/spec/acceptance/x509_cert_spec.rb +++ b/spec/acceptance/x509_cert_spec.rb @@ -15,7 +15,7 @@ it { is_expected.to be_certificate } it { is_expected.to be_valid } its(:subject) { is_expected.to match_without_whitespace(%r{C = CH, O = Example.com, CN = foo.example.com}) } - its(:keylength) { is_expected.to eq 3072 } + its(:keylength) { is_expected.to eq 1024 } end it { expect(file('/tmp/foo.example.com.key')).to be_file.and(have_attributes(owner: 'nobody', mode: '600')) } From 3ffeceaed983db282c3a8940a9fe0b62bcc18a13 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Thu, 18 Jul 2024 17:29:45 +0200 Subject: [PATCH 2/2] Update examples/x509_cert.pp Co-authored-by: Ewoud Kohl van Wijngaarden --- examples/x509_cert.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/x509_cert.pp b/examples/x509_cert.pp index 9c0d22e..f1c15c8 100644 --- a/examples/x509_cert.pp +++ b/examples/x509_cert.pp @@ -6,5 +6,6 @@ base_dir => '/tmp', owner => 'nobody', password => 'mahje1Qu', + # This is just to speed up CI - use 2048 or more in production key_size => 1024, }