Skip to content

Commit

Permalink
Merge pull request #218 from bastelfreak/keysize
Browse files Browse the repository at this point in the history
acceptance tests: use 1024 bit keys
  • Loading branch information
bastelfreak committed Jul 18, 2024
2 parents ea4c129 + 3ffecea commit 7115254
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/x509_cert.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +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,
}
2 changes: 1 addition & 1 deletion spec/acceptance/x509_cert_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')) }
Expand Down

0 comments on commit 7115254

Please sign in to comment.