140: def setup_webrick(hash)
141: hash[:Port] ||= Puppet[:masterport]
142: hash[:Logger] ||= self.httplog
143: hash[:AccessLog] ||= [
144: [ self.httplog, WEBrick::AccessLog::COMMON_LOG_FORMAT ],
145: [ self.httplog, WEBrick::AccessLog::REFERER_LOG_FORMAT ]
146: ]
147:
148: hash[:SSLCertificateStore] = x509store
149: hash[:SSLCertificate] = self.cert
150: hash[:SSLPrivateKey] = self.key
151: hash[:SSLStartImmediately] = true
152: hash[:SSLEnable] = true
153: hash[:SSLCACertificateFile] = Puppet[:localcacert]
154: hash[:SSLVerifyClient] = OpenSSL::SSL::VERIFY_PEER
155: hash[:SSLCertName] = nil
156:
157: if addr = Puppet[:bindaddress] and addr != ""
158: hash[:BindAddress] = addr
159: end
160: end