Skip to content

Commit

Permalink
Fixed #37, OpenSSL3 not allow unsigned cert convert to pem
Browse files Browse the repository at this point in the history
  • Loading branch information
elct9620 committed Nov 6, 2023
1 parent 982cd5e commit e8d72d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/models/lets_encrypt/certificate_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@

RSpec.describe LetsEncrypt::Certificate do
let(:intermediaries) { Array.new(3).map { OpenSSL::X509::Certificate.new } }
let(:key) { OpenSSL::PKey::RSA.new(4096) }
let(:ca) { OpenSSL::X509::Certificate.new }

before(:each) do
before do
LetsEncrypt.config.save_to_redis = false

ca.public_key = key.public_key
ca.sign(key, OpenSSL::Digest::SHA256.new)
end

describe '#active?' do
Expand Down

0 comments on commit e8d72d5

Please sign in to comment.