# File lib/puppet/network/http/webrick.rb, line 94
 94:     def setup_ssl
 95:         results = {}
 96: 
 97:         # Get the cached copy.  We know it's been generated, too.
 98:         host = Puppet::SSL::Host.localhost
 99: 
100:         raise Puppet::Error, "Could not retrieve certificate for %s and not running on a valid certificate authority" % host.name unless host.certificate
101: 
102:         results[:SSLPrivateKey] = host.key.content
103:         results[:SSLCertificate] = host.certificate.content
104:         results[:SSLStartImmediately] = true
105:         results[:SSLEnable] = true
106: 
107:         unless Puppet::SSL::Certificate.find("ca")
108:             raise Puppet::Error, "Could not find CA certificate"
109:         end
110: 
111:         results[:SSLCACertificateFile] = Puppet[:localcacert]
112:         results[:SSLVerifyClient] = OpenSSL::SSL::VERIFY_PEER
113: 
114:         results[:SSLCertificateStore] = host.ssl_store
115: 
116:         results
117:     end