# File lib/net/ber/core_ext/array.rb, line 73
  def to_ber_oid
    ary = self.dup
    first = ary.shift
    raise Net::BER::BerError, "Invalid OID" unless [0, 1, 2].include?(first)
    first = first * 40 + ary.shift
    ary.unshift first
    oid = ary.pack("w*")
    [6, oid.length].pack("CC") + oid
  end