# File lib/puppet/ssl/inventory.rb, line 43
43:     def serial(name)
44:         return nil unless FileTest.exist?(@path)
45: 
46:         File.readlines(@path).each do |line|
47:             next unless line =~ /^(\S+).+\/CN=#{name}$/
48: 
49:             return Integer($1)
50:         end
51:     end