Serve Fresh over HTTPS locally

How can I serve Fresh over HTTPS locally? In node I might generate certs and do

https.createServer({
  key: fs.readFileSync(path.join(__dirname, '..', 'certs/localhost.key'), 'utf8').toString(),
  cert: fs.readFileSync(path.join(__dirname, '..', 'certs/localhost.crt'), 'utf8').toString(),
}).listen(8000)


What would the equivalent be for Fresh?

Thanks in advance!
Was this page helpful?