Created
November 14, 2014 01:45
-
-
Save martianinteractive/3a88703c9bad8a708403 to your computer and use it in GitHub Desktop.
doesn't work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
returns:
OpenSSL::X509::RequestError: nested asn1 error