Skip to content

Commit

Permalink
WIP broken dns for 3rd party certs
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Monti committed Sep 14, 2012
1 parent eda16a2 commit 784febe
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions spec/units/working_with_openssl_spec.rb
Expand Up @@ -77,12 +77,20 @@
@signed = OpenSSL::X509::Certificate.new(@our_cert.to_pem)
end

it "should match the original openssl ca material" do
it "should match the original ca's distinguished name" do
@our_ca.distinguished_name.to_x509_name.should == @ca.subject
end

it "should match the original openssl ca" do
back = OpenSSL::X509::Certificate.new(@our_ca.to_pem)
back.subject.should == @ca.subject
end

it "should match the original openssl cert material" do
it "should match the original cert's distinguished name" do
@our_cert.distinguished_name.to_x509_name.should == @cert.subject
end

it "should match the original openssl cert" do
back = OpenSSL::X509::Certificate.new(@our_cert.to_pem)
back.subject.should == @cert.subject
end
Expand Down

0 comments on commit 784febe

Please sign in to comment.