131: def setup_webrick(hash)
132: hash[:Port] ||= Puppet[:masterport]
133: hash[:Logger] ||= self.httplog
134: hash[:AccessLog] ||= [
135: [ self.httplog, WEBrick::AccessLog::COMMON_LOG_FORMAT ],
136: [ self.httplog, WEBrick::AccessLog::REFERER_LOG_FORMAT ]
137: ]
138:
139: hash[:SSLCertificateStore] = x509store
140: hash[:SSLCertificate] = self.cert
141: hash[:SSLPrivateKey] = self.key
142: hash[:SSLStartImmediately] = true
143: hash[:SSLEnable] = true
144: hash[:SSLCACertificateFile] = Puppet[:localcacert]
145: hash[:SSLVerifyClient] = OpenSSL::SSL::VERIFY_PEER
146: hash[:SSLCertName] = nil
147:
148: if addr = Puppet[:bindaddress] and addr != ""
149: hash[:BindAddress] = addr
150: end
151: end