# File lib/dnsruby/resource/TLSA.rb, line 70
        def cert
          if @matching_type == 0 && @selector == 0 && @databin
            begin
              cert = OpenSSL::X509::Certificate.new(@databin)
            rescue => e
              raise ArgumentError, 'data is invalid cert '
            end
          end
          cert
        end