# File lib/dnsruby/resource/TLSA.rb, line 81
        def pkey
          pubkey = nil
          if @matching_type == 0 && @databin
            if @selector == 0
              cert = self.cert
              pubkey = cert.public_key
            elsif @selector == 1
              begin
                pubkey = OpenSSL::PKey.read(@databin)
              rescue
                raise ArgumentError, 'data is invalid pkey'
              end
            end
          end
          pubkey
        end