{"comment":{"created_at":"2011-10-25T09:07:53Z","body":"Hi Nathan,\r\n\r\n`hex_serial`\r\n\r\n `.serial.to_hex` sounds good. Do we then need to add a `to_hex` method to the Integer class?\r\n\r\n`read_extension_by_oid`\r\n\r\nI have been working with OSCP (http://en.wikipedia.org/wiki/Online_Certificate_Status_Protocol) and CRL (http://en.wikipedia.org/wiki/Certificate_revocation_list) to get this information I have been using `read_extension_by_oid` for `authorityInfoAccess` and `crlDistributionPoints`. \r\n\r\nThere is `OpenSSL::CRL` which works well and I can just check serial numbers with the standard .serial method (so we shouldnt actually change its behaviour) but `OpenSSL::OCSP` doesnt work for me so I need to generate some funky openssl shell commands which requires the serial to be in this hex format. Hope this explains my use case. Maybe we can add `authorityInfoAccess` and `crlDistributionPoints` as certificate methods?\r\n","updated_at":"2011-10-25T09:07:53Z","url":"https://api.github.com/repos/envylabs/openssl-extensions/issues/comments/2514681","id":2514681,"user":{"avatar_url":"https://secure.gravatar.com/avatar/ee85f7bd10a4699ed489895d2505fddb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ee85f7bd10a4699ed489895d2505fddb","url":"https://api.github.com/users/pyrat","id":892,"login":"pyrat"}},"action":"created","issue":{"number":1,"created_at":"2011-09-15T09:16:50Z","pull_request":{"diff_url":"https://github.com/envylabs/openssl-extensions/pull/1.diff","patch_url":"https://github.com/envylabs/openssl-extensions/pull/1.patch","html_url":"https://github.com/envylabs/openssl-extensions/pull/1"},"body":"Hi Nate,\r\n\r\nI have added a method to certificate called hex_serial which returns a serial in the same format as openssl uses on the command line etc.\r\n\r\nAlso I found the <pre>read_extension_by_oid(oid)</pre> method useful for getting other extension values out of certificates so have made it an instance method instead of protected.\r\n\r\nI have also added a test for the hex_serial method. \r\n\r\nWhat do you think?\r\n\r\nCheers,\r\nAlastair","comments":3,"title":"Addition of a hex serial and removal or protected method.","updated_at":"2011-10-25T09:07:53Z","url":"https://api.github.com/repos/envylabs/openssl-extensions/issues/1","id":1651310,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/ee85f7bd10a4699ed489895d2505fddb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ee85f7bd10a4699ed489895d2505fddb","url":"https://api.github.com/users/pyrat","id":892,"login":"pyrat"},"html_url":"https://github.com/envylabs/openssl-extensions/issues/1","labels":[],"state":"open"},"legacy":{"issue_id":1651310,"comment_id":2514681}}