OpenSSL::X509::CertificateError: nested asn1 error · Issue #201 · ruby/openssl

str = "some string" OpenSSL::X509::Certificate.new("-----BEGIN CERTIFICATE-----\n#{str}\n-----END CERTIFICATE-----") I executed in my system, it is working fine but when i tried...