/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-encrypted-http2-9c74bfa96e9a-encrypted-http2-s0462-c0000.md
encrypted http2 - hono-docs
encrypted http2 Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt encrypted http2 Summary ts import...
encrypted http2
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#encrypted-http2
Summary
## Content
```ts
import { createSecureServer } from 'node:http2'
import { readFileSync } from 'node:fs'
const server = serve({
fetch: app.fetch,
createServer: createSecureServer,
serverOptions: {
key: readFileSync('localhost-privkey.pem'),
cert: readFileSync('localhost-cert.pem'),
},
})