You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: cert_dump.rb
    path of file: ./repos/ronin/lib/ronin/cli/commands
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
#
# Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
#
# Ronin is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ronin is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCH
    
        def print_full_cert(cert)
          fields = {}

          fields["Serial"]     = cert.serial
          fields["Version"]    = cert.version
          fields["Not Before"] = cert.not_before if cert.not_before
          fields["Not After"]  = cert.not_after  if cert.not_after
          print_fields(fields)
          puts

          print_public_key(cert.public_key)
          puts

          puts "Subject:"
          indent do
            print_cert_name(cert.subject)

            if (alt_names = cert.subject_alt_names)
              puts "Alt Names:"
              puts

              indent do
                alt_names.each { |name| puts name }
              end
            end
          end