/Knowledge/sources/honojs__hono/llms-full/node-js-http2-encrypted-http2--352e18adf89d.md
Node.js: http2 > encrypted http2 - hono-docs
Node.js: http2 encrypted http2 Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt encrypted http2 Summary...
Node.js: http2 > encrypted http2
Source evidence: /Sources/honojs__hono/provenance.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'),
},
})
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#encrypted-http2",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Node.js > http2 > encrypted http2",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 462,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Node.js: http2 > encrypted http2",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}