diff --git a/lib/puppet/ssl/inventory.rb b/lib/puppet/ssl/inventory.rb
index <HASH>..<HASH> 100644
--- a/lib/puppet/ssl/inventory.rb
+++ b/lib/puppet/ssl/inventory.rb
@@ -36,7 +36,7 @@ class Puppet::SSL::Inventory
     Puppet.settings.setting(:cert_inventory).open('w') do |f|
       f.print "# Inventory of signed certificates\n# SERIAL NOT_BEFORE NOT_AFTER SUBJECT\n"
       Puppet::SSL::Certificate.indirection.search("*").each do |cert|
-        f.print format(cert)
+        f.print format(cert.content)
       end
     end
   end
(#<I>) Format the SSL certificate instead of the wrapper

Puppet holds a wrapper around SSL certificates that we need to remove
before trying to format the certificate.