use 2048 bits key

Fixes #11115
This commit is contained in:
Colin Surprenant 2019-09-03 14:22:42 -04:00
parent 6f8c677bf6
commit 281baf4218

View file

@ -36,9 +36,7 @@ describe "OpenSSL defaults" do
# https://github.com/jordansissel/ruby-flores/blob/master/spec/flores/pki_integration_spec.rb # https://github.com/jordansissel/ruby-flores/blob/master/spec/flores/pki_integration_spec.rb
# since these helpers were created to fix this particular issue # since these helpers were created to fix this particular issue
let(:csr) { Flores::PKI::CertificateSigningRequest.new } let(:csr) { Flores::PKI::CertificateSigningRequest.new }
# Here, I use a 1024-bit key for faster tests. let(:key_bits) { 2048 }
# Please do not use such small keys in production.
let(:key_bits) { 1024 }
let(:key) { OpenSSL::PKey::RSA.generate(key_bits, 65537) } let(:key) { OpenSSL::PKey::RSA.generate(key_bits, 65537) }
let(:certificate_duration) { Flores::Random.number(1..86400) } let(:certificate_duration) { Flores::Random.number(1..86400) }