cchandler/certificate_authority — pull request #21 by emonti (2012-09-14 02:54:29+00:00)
Title: Weird certificate signing request bug

This is a weird one - the DN for issuer seems to get reversed, which appears to be causing things like nginx to fail validation.

I don't have an explanation, could be my code is wrong in the example - could also be ruby OpenSSL:: doing something unexpected...

1) Signing a CSR should issue a certificate verified by the issuer
Failure/Error: @issued.issuer.to_s.should == @issuer.subject.to_s
expected: "/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd/CN=Gatekeeper CA"
got: "/CN=Gatekeeper CA/O=Internet Widgits Pty Ltd/ST=Some-State/C=AU" (using ==)
# ./spec/units/csr_signing_spec.rb:124:in `block (2 levels) in '