# ASN.1 basic/distinguished encoding rules for Ruby?

**URL:** <https://rubytalk.org/t/asn-1-basic-distinguished-encoding-rules-for-ruby/5446>\
**Category:** ruby-talk\
**Created:** [1 April 2003 00:04 UTC](https://rubytalk.org/t/asn-1-basic-distinguished-encoding-rules-for-ruby/5446 "2003-04-01T00:04:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clifford\_Heath1](https://avatars.discourse-cdn.com/v4/letter/c/dc4da7/32.png) [@Clifford\_Heath1](https://rubytalk.org/u/Clifford_Heath1)\
**Post date:** [1 April 2003 00:04 UTC](https://rubytalk.org/t/asn-1-basic-distinguished-encoding-rules-for-ruby/5446/1 "2003-04-01T00:04:59Z")

</div>

Has anyone built a library for ASN.1’s BER or DER for Ruby?  
I can’t find “ASN” in the RAA…

---

<div class="post-metadata">

**Author:** ![MikkelFJ1](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@MikkelFJ1](https://rubytalk.org/u/MikkelFJ1)\
**Post date:** [1 April 2003 23:08 UTC](https://rubytalk.org/t/asn-1-basic-distinguished-encoding-rules-for-ruby/5446/2 "2003-04-01T23:08:58Z")

</div>

“Clifford Heath” [cjh\_nospam@managesoft.com](mailto:cjh_nospam@managesoft.com) wrote in message  
news:1049155325.934415@excalibur.osa.com.au…

> Has anyone built a library for ASN.1’s BER or DER for Ruby?  
> I can’t find “ASN” in the RAA…

I’m not aware of any generic ASN.1 package but Google “Ruby ASN.1” will  
reveal some projects, for example:  
[http://members.tripod.co.jp/m6809/index-j.html](http://members.tripod.co.jp/m6809/index-j.html) here you might be able to  
pick some BER code out of an SNMP implementation.

Mikkel
