Skip to content

Instantly share code, notes, and snippets.

@martianinteractive
Created November 14, 2014 01:45
Show Gist options
  • Save martianinteractive/3a88703c9bad8a708403 to your computer and use it in GitHub Desktop.
Save martianinteractive/3a88703c9bad8a708403 to your computer and use it in GitHub Desktop.
doesn't work
#!/usr/bin/env ruby
require "openssl"
p OpenSSL::X509::Request.new(<<-CSR)
-----BEGIN NEW CERTIFICATE REQUEST-----
MIGkMIGaAgEAMIGJMRYwFAYDVQQDEw13d3cuZm9vLTMubmV0MQswCQYDVQQGEwJV
UzEeMBwGCSqGSIb3DQEJARYPZW1haWxAdGVzdC5ob3N0MRAwDgYDVQQHEwdPcmxh
bmRvMRMwEQYDVQQKEwpSYWlscyBFbnZ5MQkwBwYDVQQLEwAxEDAOBgNVBAgTB0Zs
b3JpZGEwBzACBgADAQCgADACBgADAQA=
-----END NEW CERTIFICATE REQUEST-----
CSR
@martianinteractive
Copy link
Author

returns:
OpenSSL::X509::RequestError: nested asn1 error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment